This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: How to let GCC produce flat assembly


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....


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]