avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-gcc-list] Possible to generate Flat Code


From: Bernard Fouché
Subject: RE: [avr-gcc-list] Possible to generate Flat Code
Date: Thu, 2 Dec 2004 12:28:49 +0100

that "inlining":

inline void f()
{
}

main()
{
  f();
}

will produce code where the content of f() are included in main(). If f() is
called ten times in the program, then f() code will appear ten times where
it is needed. Is that what you want?

 Bernard

-----Message d'origine-----
De : address@hidden
[mailto:address@hidden la part de Jacques van der
Linde
Envoyé : jeudi 2 décembre 2004 11:56
À : address@hidden
Objet : [avr-gcc-list] Possible to generate Flat Code


Hi,

Are there a way to tell the avr-gcc compiler to generate "flat code"??   By
"flat code" I mean that the compiler musn't insert calls and jumps to
functions generated by the compiler for optimization, but rather put the
code where the call or jmp would have been i.e. put the code at the place
where it is needed, don't call/jump to it.

Specifying optimization level 0 doesn't give the desired results.

Can anyone help?

Thanks
Jacques

_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list



reply via email to

[Prev in Thread] Current Thread [Next in Thread]