This is the mail archive of the
mailing list for the GCC project.
Re: Problem about gcc 4.1 + binutil 2.16.92 + glibc 2.4 + ARM EABI
- From: "Fengwei Yin" <yfw dot debian at gmail dot com>
- To: "Richard Earnshaw" <Richard dot Earnshaw at arm dot com>
- Cc: gcc <gcc at gcc dot gnu dot org>
- Date: Thu, 1 Jun 2006 09:29:08 +0800
- Subject: Re: Problem about gcc 4.1 + binutil 2.16.92 + glibc 2.4 + ARM EABI
- References: <email@example.com> <firstname.lastname@example.org>
Thanks for your information. I will ask for help on email@example.com.
But I still have question about gcc here:
The Local variables layout will impact my development. Consider
following C code:
tmp = (int *) c;
*tmp = j;
I don't think the local variables will be in register. So the code
"*tmp = j;" cause the
align exception in some situation if use the 4.1 toolchain. If I am
correct me. Thanks a lot.
On 5/31/06, Richard Earnshaw <Richard.Earnshaw@arm.com> wrote:
On Wed, 2006-05-31 at 07:58, Fengwei Yin wrote:
> int my_temp(void)
> int i;
> int j;
> char str;
> Please notice the address of the str and j. there IS NO memory hole
> between therm
> when using gcc 3.4.3 and there IS memory hole when using gcc 4.1. My question
> is: Why there is difference there. And what is the root cause of the
> difference (EABI
> or gcc update)? Is there any gcc option to make them align?
This has nothing to do with the EABI. Local variables are not laid out
on the stack in any particular order (and in many cases will never go on
the stack since they will live entirely in registers).
Please direct any follow-ups to firstname.lastname@example.org. This is off-topic
for this list.
Richard Earnshaw Email: Richard.Earnshaw@arm.com
ARM Ltd Phone: +44 1223 400569 (Direct + VoiceMail)
110 Fulbourn Road Switchboard: +44 1223 400400
Cherry Hinton Fax: +44 1223 400410
Cambridge CB1 9NJ Web: http://www.arm.com/
-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.