public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* memAlignment problem .. Please help
@ 2003-11-12 17:35 Ottawa Guy
  0 siblings, 0 replies; only message in thread
From: Ottawa Guy @ 2003-11-12 17:35 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-11-12 17:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-12 17:35 memAlignment problem .. Please help Ottawa Guy

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).