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]
Other format: [Raw text]

Re: Difference between stack pointer and frame addressduringcodegeneration


> >Does something along the lines of a "FINAL_ELIMINATION_OFFSET()" exist,
> >that can be called from code-generation in the back-end?
> >
> >  
> >
> Sorry, I don't understand what you mean saying "code-generation in the 
> back-end".  As I wrote there is no "FINAL_ELIMINATION_OFFSET" before 
> reload.  After the reload it is INITIAL_ELIMINATION_OFFSET.

E.g. INITIAL_ELIMINATION_OFFSET() does not take into account how the
stack pointer changes as arguments are pushed onto the stack before a
function call.

What I'm wondering about is whether it is possible, in the code that
gets invoked in a "define_insn" to generate the actual assembly, to find
out the difference between the SP and the frame address.



-- 
Øyvind Harboe
http://www.zylin.com


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