Re: __declspec(naked) and function body size

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

 



Ilyes Gouta wrote:

> Is it possible using GCC? If yes, could you please tell me how?

There is __attribute__((naked)) but it's not supported for x86.  I think
the feeling is that gcc should be able to detect when a prologue is not
necessary on its own and just not emit it, and that forcably disabling
the prologue just results in horribly broken code if the function
happens to require a spill.  See also
<http://gcc.gnu.org/ml/gcc/2004-02/threads.html#00939>.

Brian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux