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]

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/


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