On 16 November 2007 10:56, Li Wang wrote: > Dave Korn 写道:
>> >> Various CPU backends (but IIRC not i386) implement a "naked" function >> attribute, which suppresses function epilogue and prologue generation. You >> could implement something like that. >> > It seems to be what I want. Could you please give more clues? Which > backend and where I can find that "naked" function attribute, thanks. Lots of the embedded cpu backends implement it, see e.g. arm, avr, c4x, h8300 (calls it 'OS_Task'), mcore, spu. cheers, DaveK -- Can't think of a witty .sigline today....