From: "Brendan Murray" <bpmurray@nospam.mediaone.net>
Subject: Re: What causes a Floating Poing Exception error?
Date: 2000/02/02 [thread overview]
Message-ID: <NxMl4.56597$zU5.767914@wbnws01.ne.mediaone.net> (raw)
In-Reply-To: 876gcd$96v$1@nnrp1.deja.com
"Dr. Unk" <dr_unk@hotmail.com> wrote in message
news:876gcd$96v$1@nnrp1.deja.com...
> 4. Does it have anything to do with architecture dependent code or
> system libraries?
It can. If you're trying to access a 16-bit datum via a pointer that points
to an odd byte address on e.g. a SPARC, you'll get an alignment interrupt
which can, depending on the compiler switches, result in a segmentation
fault. Similarly, accessing a 32-bit entity on a non-four-bytye-aligned
address causes the same thing.
For 64-bit processors, this is much more likely. I notice you've posted this
to the alpha newsgroup, so this may be relevant. I've just finished porting
some code to Sparc Ultra and our code was sprinkled with just such
misaligned code, despite it being OK for 32-bit alignment. The problem is
that a long is now 64 bits, which screwed everything up.
On machines with Intel processors, this doesn't happen.
B=
next prev parent reply other threads:[~2000-02-02 5:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-02-01 5:00 What causes a Floating Poing Exception error? Dr. Unk
2000-02-01 5:00 ` Tony Hammitt
2000-02-01 5:00 ` Alex Rhomberg
2000-02-01 5:00 ` Robert Harley
2000-02-02 5:00 ` Brendan Murray [this message]
2000-02-02 5:00 ` Brian V. Smith
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