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
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to