Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: "JJ" <john.jemiolo@mindspring.com>
Subject: Re: unaligned trap
Date: Sun, 28 Jan 2001 21:13:34 -0500	[thread overview]
Message-ID: <952j95$fqr$1@slb1.atl.mindspring.net> (raw)
In-Reply-To: 952bjo$iri$1@nnrp1.deja.com

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

<klimadmin@altavista.com> 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 <slrn978v1p.hf5.hs@paradise.nirvananet>,
>   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/




  reply	other threads:[~2001-01-29  2:13 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-28 18:55 unaligned trap klimadmin
2001-01-28 21:25 ` Hartmann Schaffer
2001-01-28 23:56   ` klimadmin
2001-01-29  2:13     ` JJ [this message]
2001-01-29 17:05   ` michal
2001-01-30 12:49     ` Paul Repacholi
2001-01-29 16:56 ` michal
  -- strict thread matches above, loose matches on Subject: below --
1999-12-01  5:00 Unaligned trap Idar Tollefsen
1999-12-01  5:00 ` Pierre Asselin
1999-12-02  5:00   ` Idar Tollefsen
1999-12-02  5:00     ` Alex Rhomberg
1999-12-02  5:00       ` Idar Tollefsen
1999-12-03  5:00         ` Alex Rhomberg
1999-12-01  5:00 ` Sashka Nochkin
1999-12-01  5:00   ` Idar Tollefsen
1999-12-02  5:00     ` Sashka Nochkin
1999-12-02  5:00 ` Michal Jaegermann
1999-12-02  5:00   ` Idar Tollefsen
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