This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
"Unaligned access" on Dec Alpha's OSF1
- To: help-gcc at gnu dot org
- Subject: "Unaligned access" on Dec Alpha's OSF1
- From: Dietmar Koop <d_koop at my-deja dot com>
- Date: Tue, 05 Oct 1999 06:48:38 GMT
- Newsgroups: gnu.gcc.help
- Organization: Deja.com - Before you buy.
- Xref: wodc7nx0 gnu.gcc.help:1276
we are porting our software to DEC Alpha's OSF1, using
the gcc.
Running the compiled program, we
are getting some warning messages about "unaligned access".
We guess that the reason are 64-bit problems.
Here's the message:
Unaligned access pid=3643 <programm_name> va=0x1401aa061
pc=0x3ff80680e38 ra=0x3ff803ea318 inst=0xa0a30008
Here the versions of gcc, gdb and OSF1:
gcc -v: gcc version 2.95 19990728 (release)
gdb -v: GDB 4.16
uname -a: OSF1 lempel V4.0 1091 alpha
Using the gdb we can see that the pc points to a
Motif function: XmCreateFormDialog
Our software runs without problems under the following
32-bit platforms:
- HP-UX 10.20, compiled with gcc 2.8.1
- Linux, gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
- Solaris 2.6, gcc 2.8.1
- Siemens Sinix 5.43 (Reliant Unix), cc
We have the following questions:
(1) Does anyone know what we can do to avoid unaligned access ?
(2) Is there any compiler switch of the gcc/egcs to handle this problem?
(the compiler from DEC has the option "-taso")
Thanks.
--
Dietmar Koop (d_koop@gmx.de)
Sent via Deja.com http://www.deja.com/
Before you buy.