From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,cc057588f5f2521c X-Google-Attributes: gidfee84,public From: mark@cita.toronto.edu (Mark Bartelt) Subject: Re: Unaligned access error. Date: 1997/02/06 Message-ID: #1/1 X-Deja-AN: 214939047 sender: nntp@utcc.utoronto.ca (News) x-nntp-posting-host: rorqual.cita.utoronto.ca references: <01bc11da$7335f530$c9d992cf@pluto> <32F61D97.3D6A@wlv.iipo.gtegsc.com> <32F62945.3ACF@powel.no> organization: Canadian Institute for Theoretical Astrophysics reply-to: mark@cita.utoronto.ca newsgroups: comp.unix.osf.osf1 [ 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)" ]