Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Newbie Question?
@ 1999-10-19  4:00 Alexander Verhaar
  1999-10-20  4:00 ` Alex Rhomberg
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Verhaar @ 1999-10-19  4:00 UTC (permalink / raw)


Maybe this is a typical newbie question, but I never saw/notice the
following question.

What precisely is an "Unalligned error"?
I'm normally only programming on the x86 platform, and
just begun to program on my Alpha.

Alex




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Newbie Question?
  1999-10-19  4:00 Newbie Question? Alexander Verhaar
@ 1999-10-20  4:00 ` Alex Rhomberg
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Rhomberg @ 1999-10-20  4:00 UTC (permalink / raw)


Alexander Verhaar wrote:
> 
> Maybe this is a typical newbie question, but I never saw/notice the
> following question.
> 
> What precisely is an "Unalligned error"?
> I'm normally only programming on the x86 platform, and
> just begun to program on my Alpha.

It means that data is not at the proper places in memory

The Alpha is a 64 bit machine and therefore expects it's data to be
properly stored in memory.
It is unaligned is 
(address of data) mod sizeof(type) != 0  where sizeof(type) is 1,2,4 or
8

With glibc 2.1, timespec contains 64 bit values, when before it had 32
bit values. This made ping generate 'unaligned traps' because the values
were not at a 8 byte boundary

- Alex



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-10-20  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-19  4:00 Newbie Question? Alexander Verhaar
1999-10-20  4:00 ` Alex Rhomberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox