This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
how are stack slot addresses resolved?
- From: Christian Lindig <lindig at cs dot uni-sb dot de>
- To: gcc mailing list <gcc at gcc dot gnu dot org>
- Date: Tue, 19 Aug 2003 11:39:28 +0200
- Subject: how are stack slot addresses resolved?
I'd like to understand how GCC resolves addresses into the stack frame
and would be grateful if some expert could provide a high-level picture.
- when a slot is allocated during the translation of a function the
layout of the frame isn't fixed yet. But an address relative to the
stack pointer depends on the size of the frame. What does GCC do?
Use consecutive allocation and addressing relative to the frame
pointer?
- outgoing parameters from different call sites share memory in the
frame. How is the size of the memory block computed? Using some
kind of high-water mark?
-- Christian
--
Christian Lindig http://www.st.cs.uni-sb.de/~lindig/