3 ms·
How can that be true? Every assembly function in Go moves its arguments from memory relative to the stack pointer. If the arguments were in registers instead it
by jeffbee 6y ago
How can that be true? Every assembly function in Go moves its arguments from memory relative to the stack pointer. If the arguments were in registers instead it would break every assembly function. Does gccgo not support asm?
- uryga 6y ago> In contrast to 6g (the original Go compiler) gccgo tries to mimic the native calling convention. https://dr-knz.net/go-calling-convention-x86-64.html#differences-with-gccgo https://dr-knz.net/go-calling-convention-x86-64.html#differe...
- jeffbee 6y agoI just tried it and it won't build my existing Go packages that include x86 assembly files. So I conclude that it does indeed break compatibility with asm, which certainly is one way to change the calling convention.