Passing parameters and result by registers in assembly ?
85 views
Skip to first unread message
christoph...@gmail.com
unread,
May 14, 2025, 3:26:02 PMMay 14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
I'm experimenting with assembly and apparently (based on objdump output), my assembly uses the abi0 which requires to pass parameters and results with the call stack.
Looking at the runtime assembly, it seam possible to pass and receive arguments directly by registers. Is it possible to use this ABI (abi1?) or is its use restricted to the runtime ?
Keith Randall
unread,
May 15, 2025, 12:52:35 AMMay 15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
What you are talking about is ABIInternal, which is currently supported only in the standard library (and compiler output).