If c++ didn't need itanium
reddit.com·12w·
Discuss: r/cpp

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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help