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
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
to golang-nuts
What you are talking about is ABIInternal, which is currently supported only in the standard library (and compiler output).
We've been thinking about snapshotting ABIInternal as ABI1 at some point, so it can be used externally. No concrete plans yet.

Reply all
Reply to author
Forward
0 new messages