This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: order of local variables in stack frame
- From: Markus Franke <Markus dot Franke at informatik dot tu-chemnitz dot de>
- To: Robert Dewar <dewar at adacore dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 23 Jan 2007 14:46:09 +0100
- Subject: Re: order of local variables in stack frame
- References: <45B60A6D.9080607@informatik.tu-chemnitz.de> <45B60BA4.2010103@adacore.com>
- Reply-to: Markus dot Franke at informatik dot tu-chemnitz dot de
Well, you are right. The code looks good and works also. But I have some
kind of a reference implementation which is based on GCC 2.7.2.3. In
this version the local variables are allocated the other way around, the
way in which I expected. Obviously, the order of allocation has changed
till now (4.1.1). I just wanted to know whether I can correct this, but
if not its also OK.
Thanks,
Markus
Robert Dewar wrote:
> Markus Franke wrote:
>
>> Please let me know whether I missunderstood something completely. If
>> this behaviour is correct what can I do to change it to the other way
>> around. Which macro variable do I have to change?
>
>
> There is no legitimate reason to care about the order of variables
> in the local stack frame! Or at least I don't see one, why do *you*
> care? Generally one may want to reorder the variables for alignment
> purposes anyway.
>
--
Nichts ist so praktisch wie eine gute Theorie!