Re: [go-nuts] Choosing ABI for a function

2022-11-09 Thread Aviram Hassan
Thank you. I found that the best way (or only?) is to have an assembly function reference a Go function, then the compiler creates a wrapper that can be used. On Tue, Nov 8, 2022 at 7:14 PM Ian Lance Taylor wrote: > On Tue, Nov 8, 2022 at 7:55 AM Aviram Hassan > wrote: > > > > I see that some r

Re: [go-nuts] Choosing ABI for a function

2022-11-08 Thread Ian Lance Taylor
On Tue, Nov 8, 2022 at 7:55 AM Aviram Hassan wrote: > > I see that some runtime functions have both `abi0` interface and > `ABIInternal`. > I was wondering what makes the compiler do so, and if I can make it do the > same for my defined functions? > A bit of a background - I'm doing a bit of a l

[go-nuts] Choosing ABI for a function

2022-11-08 Thread Aviram Hassan
Hi, I see that some runtime functions have both `abi0` interface and `ABIInternal`. I was wondering what makes the compiler do so, and if I can make it do the same for my defined functions? A bit of a background - I'm doing a bit of a lowlevel fun, and I want to hook Go functions using just Go c