Re: inlined functions and ABI guarantees

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

 



On Fri, Feb 22, 2008 at 22:42, Maurizio Vitale
<maurizio.vitale@xxxxxxxxxxxxxxxxxxxxxx> wrote:

>  Is it safe to assume that GCC saves "callee-owned" registers around a
>  function call that gets inlined?
>  Or does GCC look inside the expansion and determines what needs to be
>  saved?

No.  Once a function is inlined, the register allocator does not
really know that the inlined body comes from a different function.
For all it knows, the code comes from the same parent function.  It's
the same effect as if you had inlined the function in a text editor
and compiled the result (well, except that the inliner keeps enough
debugging information around to inform the debugger about it).


Diego.

[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