This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]