From: Ottawa Guy <ottawaguy81@yahoo.com>
To: gcc-help@gcc.gnu.org
Subject: memAlignment problem .. Please help
Date: Wed, 12 Nov 2003 17:35:00 -0000 [thread overview]
Message-ID: <20031112173524.15334.qmail@web13003.mail.yahoo.com> (raw)
Hi,
I am compiling gcc2.95.3 for target=sparc-elf from
scratch. The installation went fine. When I compile
and run my application using gcc2.95.3. I get a memory
misalignment errir on one of my structure. After
debugging further I found that the sturcture member
was a half word address. Since Sparc can only handle
full word memory adress. So I get an "memory unaligned
exception". Do I have to change any option in
gcc2.95.3/gcc/config/sparc.h file to force all the
memory alignment of a structure. I tried all the flags
in the compiler to force aligment with no result.(
"-Wa,--enforce-aligned-data")
Following are the command I use to compile "gcc" I am
missing something
1. mkdir tmp/build/gcc
2. cd tmp/build/gcc
3. ../../gcc-2.95.3/configure --target=sparc-elf
--prefix=/user/gcc --with-gnu-as --with-gnu-ld
--with-newlib -v 2>&1 | tee configure.out
4. make -w all-gcc install-gcc LANGUAGES="c c++" 2>&1
| tee make.out
Thank you in advance
O
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
reply other threads:[~2003-11-12 17:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031112173524.15334.qmail@web13003.mail.yahoo.com \
--to=ottawaguy81@yahoo.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).