Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: manus@eiffel.com (Emmanuel STAPF [ISE])
Subject: Unaligned access
Date: 5 Mar 2003 22:27:31 -0800	[thread overview]
Message-ID: <2f47c0e6.0303052007.440571b5@posting.google.com> (raw)

I'm getting an unaligned access error message in my program.
Unfortunately it only occurs when `-O2' is specified. I therefore had
to compile with `-O2 -g3' in order to debug it, but the location it
reports the unaligned access is in a call to memcpy and there does not
seem to be a way to access the value of locals and arguments. The line
of code looks like:

memcpy (dest, &i, sizeof(int));

where `dest' is a char *, most likely unaligned since it is an
arbitrary memory area.
where `i' is an argument passed to the function in which `memcpy' is
called.

Any hint on how to solve this,
Thanks,
Manu


uname -a reports:
OSF1 tellus.enea.se V5.1 1885 alpha

gemc_cc -V reports:
Compaq C V6.4-009 on Compaq Tru64 UNIX V5.1A (Rev. 1885)

cc -v reports:
Compaq C V6.4-214 (dtk) on Compaq Tru64 UNIX V5.1A (Rev. 1885)
Compiler Driver V6.4-014 (dtk) cc Driver


             reply	other threads:[~2003-03-06  6:27 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-06  6:27 Emmanuel STAPF [ISE] [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-03-31  5:00 Unaligned access Kraisit Vittinanon
2000-04-04  4:00 ` Oisin McGuinness
1998-03-31  5:00 Allen M. Cohen
1998-04-01  5:00 ` Joe Mario
1996-11-15  5:00 unaligned access gautam
1996-11-16  5:00 ` Dirk Grunwald
1996-11-20  5:00 ` Jeff Denham
1996-11-22  5:00   ` Curt Smith
1996-11-21  5:00 ` Anthony Berent
1995-05-20  4:00 Adrian Wenden
1995-05-22  4:00 ` Eric Osborne
1995-05-24  4:00 ` Vepa V Sirish
1995-05-25  4:00 ` John Wood
1994-02-05 21:21 Stefan Monnier
1994-02-06  9:39 ` Jarkko Hietaniemi
1993-11-30 22:25 Roland Schemers
1993-11-30 23:25 ` Matt Thomas
1993-12-01 12:06 ` Burkhard Neidecker-Lutz
1993-12-07  1:27 ` Jim Hurst
1993-02-23 15:55 Unaligned access Byron Jennings
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox