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 address duringcodegeneration


Øyvind Harboe wrote:

On Wed, 2005-03-02 at 10:03 -0500, Vladimir Makarov wrote:


Øyvind Harboe wrote:



Is there an existing technique to figure out the difference between the frame address and the stack pointer during code generation of
arbitary instructions?





You can get the current offset through INITIAL_ELIMINATION_OFFSET.



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.

Vlad



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