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]

Re: Function PPC prolog/epilog test


>>>>> Ralph Schmidt writes:

Ralph> Is there a method to test at compile time if the compiler generated
Ralph> a prolog/epilog or if it optimized it away ?
Ralph> Dependent on the prolog/epilog i could use a quick return in
Ralph> an assembler macro.

	The compiler always generates a prolog and epilog.  The ABI
requires a minimal prologue and epilogue.  The function may not generate a
stack frame, but it will have prolog and epilog.

David


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