From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,e02328d126cd4ed X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2001-01-28 18:07:48 PST Path: supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!newsfeed.direct.ca!look.ca!newsfeed1.earthlink.net!newsfeed2.earthlink.net!newsfeed.earthlink.net!news.mindspring.net!not-for-mail From: "JJ" Newsgroups: comp.os.linux.alpha Subject: Re: unaligned trap Date: Sun, 28 Jan 2001 21:13:34 -0500 Organization: MindSpring Enterprises Message-ID: <952j95$fqr$1@slb1.atl.mindspring.net> References: <951puk$4go$1@nnrp1.deja.com> <952bjo$iri$1@nnrp1.deja.com> NNTP-Posting-Host: a5.f7.01.73 X-Server-Date: 29 Jan 2001 02:07:33 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-Mimeole: Produced By Microsoft MimeOLE V5.00.2615.200 Xref: supernews.google.com comp.os.linux.alpha:2111 Recompile may not fix it... Alpha is a RISC machine and expects all the data it processes to be on word boundary's. When Data is accessed which is not on a word boundary, (a piece of byte data in a structure), it performs a trap, and processes the data using firmware emulation of byte instructions, to let the programmer know what is going on, a informational/warning message is printed to the console device "unaligned trap". This is not an error, but simply letting you know the program is wasting time executing emulated byte instructions, and yes, newer CPU's have the byte instructions but they still waste time and the messages are still generated. If you do a search on the redhat axp-list mailing list, the procedure for identifying the piece of code causing the trap is explained in some of the message threads. JJ wrote in message news:952bjo$iri$1@nnrp1.deja.com... > We have two machines: DP264 and AS500. > I believe the first one, that is dual-CPU and > was purchase about a year ago does already possess > 212... (i might not be right) processor. > > Do you think it is worth trying to recompile > applcations from the source? > > If so, what compiler is better to use? > Native Compaq or GNU? > > ak > > In article , > hs@paradise.nirvananet (Hartmann Schaffer) wrote: > > you probably have a first generation alpha (21064?): they have only > full > > word load and store instructions. halfword and byte instructions > were added > > with later generations. if the application is compiled for one of > the late > > cpu generations, they will issue traps that call a system routine > which > > emulates the offending instructions, but also reports the trap. if > you > > recompile those applications with the correct cpu setting the > messages will > > go away > > > > hs > > > > > Sent via Deja.com > http://www.deja.com/