Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: mark@cita.toronto.edu (Mark Bartelt)
Subject: Re: Unaligned access error.
Date: 1997/02/06	[thread overview]
Message-ID: <E56HCE.D4C@utcc.utoronto.ca> (raw)
In-Reply-To: 32F62945.3ACF@powel.no


[ Roland Kruse ]

>>  Im my experience, unaligned access messages always indicate something
>>  seriously
>>  wrong with the program (typically pointer arithmetics and/or casting
>>  problems)
>>  and should always be taken seriously.

Well, I don't think I'd go *that* far ...  Something as trivial as

	real*4 f
	real*8 d
	common /spam/ f, d

will cause an unaligned access whenever d is referenced.  One can argue
that it might be sloppy programming practice so arrange Fortran common
blocks or C structs so that things aren't on "natural" boundaries, but
I wouldn't call it "seriously wrong".  Still worth fixing, of course,
particularly in view of the performance hit that would result of there
are a lot of unaligned access traps.

Mark Bartelt                                               416/978-5619
Canadian Institute for                            mark@cita.utoronto.ca
Theoretical Astrophysics              http://www.cita.utoronto.ca/~mark

"Clothes not busy being worn are busy drying." -- Dylan, on laundry day
         [ singing "It's all right, ma (I'm only bleaching)" ]



  reply	other threads:[~1997-02-06  5:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-02-03  5:00 Unaligned access error Tim Cochran
1997-02-03  5:00 ` Allen M. Cohen
1997-02-03  5:00   ` Roland Kruse
1997-02-06  5:00     ` Mark Bartelt [this message]
1997-02-04  5:00   ` Tim Mooney
1997-02-04  5:00     ` Tim Cochran
1997-02-04  5:00 ` Alexander Kogan
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