This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Regarding Linux aarch64 calling conventions (ABI)

In the documenttion I've seen, it appears that the first 8 registers x0-x7 are for parameter passing and don't need to be saved.

But this is always vaguely defined so I need to ask:

If function A uses all of x0-x7 and then calls function B, which uses x4-x7 as temporary variables, this will wipe out function A's values. Why would I not need to back up x4-x7, as the documentation suggests?

Thanks.

0