On Tue, 19 Apr 2016, AKASHI Takahiro wrote: > > looking at [2] i don't see why > > > > func: > > mov x9, x30 > > bl _tracefunc > > <function body> > > Actually, > mov x9, x30 > bl _tracefunc > mov x30, x9 > <function body>
I think here Szabolcs' point was that the last instruction can be eliminated: _tracefunc can be responsible for restoring x30, and can use x9 to return to its caller. It has a non-standard calling convention and needs to be implemented in assembly anyway. Alexander