Recent

Author Topic: AArch64. Registers  (Read 254 times)

LemonParty

  • Sr. Member
  • ****
  • Posts: 393
AArch64. Registers
« on: November 23, 2025, 06:50:27 pm »
Hello.

What registers can be changed freely and what should be saved?
Lazarus v. 4.99. FPC v. 3.3.1. Windows 11

LemonParty

  • Sr. Member
  • ****
  • Posts: 393
Re: AArch64. Registers
« Reply #1 on: November 24, 2025, 08:51:33 am »
Found this table. Accodingly to this:
For example, the function foo() can use registers X0 to X15 without needing to preserve their values. However, if foo() wants to use X19 to X28 it must save them to stack first, and then restore from the stack before returning.
Lazarus v. 4.99. FPC v. 3.3.1. Windows 11

 

TinyPortal © 2005-2018