Re: quick question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux