From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,3439cdcbcf2573d8 X-Google-Attributes: gid1164f8,public From: Monteleone Subject: Re: Alpha C++ Compiler, Please help! Date: 1997/02/06 Message-ID: <32FA0032.41C6@clt.enet.dec.com>#1/1 X-Deja-AN: 214868652 references: <01bc1368$301636e0$0d70c697@redix> content-type: text/plain; charset=us-ascii organization: Digital Equipment Corporation, Palo Alto, CA, USA mime-version: 1.0 newsgroups: comp.sys.dec x-mailer: Mozilla 3.0 (X11; I; OSF1 V4.0 alpha) Pen Chiang wrote: > > PLEASE... > > I am trying to port a program from AIX to Alpha UNIX using using Alpha C++ > Version 5.1. The compilation and link seem to be ok, but when exected I > keep on getting the statements "Unaligned Access pid ...". What flag should > I use during the compiling process to supress this messages. > > In version 5.5, I used the flag "-misalign" to supress the "Unaligned > statement, but what should I use in the Version 5.1 environment. > > THANKS, > Pen The C++ V5.1 compiler did not support the -misalign switch. There is no switch available with V5.5. The use of the -misalign switch is not recommended at any rate because of the performance degradation, which is most often, quite extensive. In all likelyhood, you are seeing unaligned accesses because of a problem in the source code which should be corrected there. There is a FAQ which addresses this issue directly: http://www.partner.digital.com/www-swdev/pages/Home/TECH/faqs/dunix/unalign.html Again, the recommended solution to this problem is to track down the problem and modify the source, as described in the FAQ. There are other ways to get around this situation using "uac" (also described in the FAQ), but this approach is only recommended as a fall back. Bob