Regarding stack pointer

Andrew Haley aph@redhat.com
Mon Oct 23 09:06:00 GMT 2006


h2005422@bits-pilani.ac.in writes:

 > I am working on Generational Grabge collector for c language.And i want to
 > determine the stack high pointer.Kindly tell the way to get this.

If you're really going to do a generational collector, getting the
stack pointer is going to be the least of your worries.  For example,
how are you going to handle write barriers?

Anyway, Have a look at Section 5.41, _Getting the Return or Frame
Address of a Function_.

Andrew.



More information about the Gcc-help mailing list