This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: quick question
- From: John Love-Jensen <eljay at adobe dot com>
- To: Jim Stapleton <stapleton dot 41 at gmail dot com>, MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Thu, 16 Feb 2006 09:23:40 -0600
- Subject: Re: quick question
Hi Jim,
> Now, this set of code works on the x86 platform, but I'm worried it
> may not work on other platforms, am I correct in this worry?
You are correct, that code will not necessarily work on all platforms. Such
as DEC Alpha, SPARC, 680[346]0 or PowerPC architectures (and probably on
HPPA as well). Depending on the OS, may cause a SIGBUS error.
Some compilers, such as the DEC one for the DEC Alpha on Tru64, had a
facility to automagically catch SIGBUS errors, do-the-right-thing (albeit
horribly inefficiently), and continue running.
HTH,
--Eljay