"Unaligned access" on Dec Alpha's OSF1
Juergen Heinzl
juergen@monocerus.demon.co.uk
Wed Oct 6 20:05:00 GMT 1999
In article < 7tc704$ci0$1@nnrp1.deja.com >, Dietmar Koop wrote:
>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 ?
You can switch the warning off. See the FAQ for this system ...
http://www.ugu.com/sui/ugu/show?I=dunix.faq&F=1111111111&G=Y
... and yes, there is a but and it is not the best solution.
>(2) Is there any compiler switch of the gcc/egcs to handle this problem?
> (the compiler from DEC has the option "-taso")
Not that I know off but I've yet to install gcc on our DEC.
Ta',
Juergen
--
\ Real name : Jürgen Heinzl \ no flames /
\ EMail Private : juergen@monocerus.demon.co.uk \ send money instead /
More information about the Gcc-help
mailing list