If c++ didn't need itanium
reddit.com·5h·
Discuss: r/cpp
Flag this post

I kinda think I have a good abi ,

Let’s call it mjc,

I sometimes go into ghidra to see my assembly,

I’m kinda tired of the call and ret instructions, they feel limited, and from the past ,

Why not be like arm ,

There are special registers:

1.Stack pointers( base ptr and stack ptr) 2.Program counter 3.Virtual extended register set pointer ( I am not certain on its usefulness, it is not necessary for the abi to function , although kinda neet) 4. Normal Return address 5. Catching return address (not used in noexcept functions)

A function has :

In registers 1.

Out registers 1.

Inout registers 1.

Used registers

1,2, and 3 are determined by the function signature, and for any given function pointer type are the same.

4, on the orher Hand is: A set of all registers fo…

Similar Posts

Loading similar posts...