Hi all, I am wondering if there is a method to tell explicitly GCC (built with target `sparc-elf') to generate a leaf procedure for a given function. I had a look at the machine code generated by the compiler, and it seems not to automatically generate a leaf procedure for a function that has not calls, like: ---- void foo(void) { return; } ---- I would appreciate if somebody told me the way to explicitly generate a SPARC assembly leaf procedure, starting from a C function. It would be perfect if there was a way to tell the compiler which registers can be used and which not (this would allow the coexistence of C and assembly sources). My reference architecture is SPARC v8. Thank you in advance, Josef Ahmad