Re: Which spec has defined the calling sequence of static C functions (like the extern C functions' has been defined in the Sys V ABI specs)?

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

 



>
> > Furthermore, could I make the following conclusion under GCC and Linux?
> > Conclusion:
> >
> >    For the "calling" of the C static functions, it has only two
> > possibilities -- either it's been inlined by the compiler optimization
> > (i.e. not actually been called by the `call` instruction but been
> optimized
> > for the reason of speed), Or it would be actually called (with the `call`
> > instruction) under the "Function Calling Sequence" constraints which have
> > been described in the Sys V ABI specs (same as the calling of those
> extern
> > C functions).
>
> No.  The compiler may use customized calling convention to maximize the
> performance unless this function may be called in other translation units.
>

Thank you very much, Xi. This information is very useful to me. Because I
have never known the existence of such kind optimization before. It is
brilliant! Do you mind to provide an example about such optimization --
"customized calling convention about the calling of some static functions"
in GCC?

Thanks a lot :-)



[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