[fpc-devel] Fixed up !104
J. Gareth Moreton
gareth at moreton-family.com
Tue Dec 28 01:18:08 CET 2021
If needs be, I can easily build on this merge request later to fill the
saved register arrays if a particular architecture has a tailor-made
solution.
Note that the volatile registers are not saved in this array and are
checked separately. (e.g. in aoptx86.pas, the method
GetIntRegisterBetween, which could theoretically be made
platform-independent (it contains some conditional code for i386 because
8-bit registers can only be AL, CL, DL and BL), calls "RegSet
:=paramanager.get_volatile_registers_int(current_procinfo.procdef.proccalloption)
+current_procinfo.saved_regs_int;" to get the list of registers
available to the current procedure. While this is slightly slower, I
figure it's a bit more flexible and backward-compatible.
Gareth aka. Kit
On 27/12/2021 19:32, J. Gareth Moreton via fpc-devel wrote:
> Hi Florian et al,
>
> I fixed up the CPU subtype in
> https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/104 -
> hopefully the merge request is good now.
>
> Gareth aka. Kit
>
>
--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20211228/bdf2fc40/attachment.htm>
More information about the fpc-devel
mailing list