On Mon, Jun 17, 2019 at 04:05:57PM -0600, Jeff Law wrote: > On 6/17/19 2:28 PM, Vincent Rivière wrote: > So what you have here is two different ABIs that have to coexist together?
In a way. He want to define something to do syscalls, which you could view as a separate ABI yes. > This is best addressed by changing GCC itself to know about the > different ABIs. Trying to tackle in ASMs is going to be painful, > particularly since your asms change the stack pointer and that's > generally verboten for an ASM. Yes. And pretty much all current targets use inline asm or real asm for this. > If you're going to insist on doing this with an ASM you're likely going > to need to only use registers and constants for constraints since > otherwise you run the risk of getting a stack address. I agree. Segher