This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Changing the frame layout of H8 port to reduce code size
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: law at redhat dot com
- Cc: ian at wasabisystems dot com, gnuh8 at gnuh8 dot org dot uk, gcc at gcc dot gnu dot org, toshiyasu dot morita at renesas dot com
- Date: Tue, 27 Jan 2004 14:44:08 -0500 (EST)
- Subject: Re: Changing the frame layout of H8 port to reduce code size
- References: <m3oesplajc.fsf@gossamer.airs.com><200401271459.i0RExhYe011652@speedy.slc.redhat.com>
Hi Ian and Jeff,
> >> I am thinking about changing the frame layout of H8 port to reduce
> >> code size and would like to ask for comments.
> >
> >You didn't mention whether you've checked the debugger. Does gdb
> >still work fine after such a change, or would it need some
> >modifications?
> The only part of GDB that is likely going to need to be updated would be
> the code which digs saved registers out of the frame.
I will look into this.
> We'll probably need a virtual frame pointer since the offset between the
> hard frame pointer and the locals isn't set until after we know how many
> saved registers are needed. But that's known technology.
Oops. You saved my life. I was unaware of the issue. :-)
> In general, it seems like a pretty reasonable idea to me.
Thanks!
Kazu Hirata