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: Interpreting stack frame


Peter Leist <peterleist@googlemail.com> writes:

> How can I interpret the stack frame of the current_function? That
> means, how can
> I tell what is stored at the location FP+xxx. If that is not (easily)
> possible, it would
> help if I can somehow determine the type of data stored at that
> location (i.g is that
> a reference to a variable or the contents of a variable).

Stack slots can be shared by different variables, so I'm not sure there
is a coherent answer to this.  That said, look at assign_stack_local and
assign_stack_temp in gcc/function.c.

Ian


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