Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Portability of Misaligned Data Access . . . . . . . (was Re: issues with format of double (or IEEE754))
- Date: Thu, 27 Jul 2006 09:52:49 +0900
- From: "Josh Glover" <jmglov@example.com>
- Subject: Re: [tlug] Portability of Misaligned Data Access . . . . . . . (was Re: issues with format of double (or IEEE754))
- References: <20060726125907.GH5111@example.com> <87ejw8corz.fsf@example.com> <20060726164125.4959ce4e.jep200404@example.com>
On 27/07/06, Jim <jep200404@example.com> wrote:It makes me think about the portability of some of the stuff I've written. Most runs on Intel trash, which seemingly tolerates misaligned data, but such programs might puke when running on non x86 family CPUs.Indeed. SUN4U processors (and probably most SPARC processors, I would imagine) tend to spew bus errors if integers are not aligned on a four-byte boundary. I found this out the hard way when I moved a ISDN trunk control daemon that I wrote, which had been running happily on an Intel box running Linux, to a SUN4U box running Solaris 8. And, as luck would have it, the bug was not exposed unless there were something like any multiple of three simultaneous calls. That one had me scratching my head and Googling like a madman! :) -Josh
- References:
- [tlug] issues with format of double (or IEEE754)
- From: Michal Hajek
- Re: [tlug] issues with format of double (or IEEE754)
- From: Stephen J. Turnbull
- [tlug] Portability of Misaligned Data Access . . . . . . . (was Re: issues with format of double (or IEEE754))
- From: Jim
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] I'm a glutton for punishment - Palm Pilot and Ubuntu Dapper LTS connectivity
- Next by Date: Re: [tlug] result_normal_plus[2]='\0' likely clobbers payload
- Previous by thread: Re: [tlug] Step Aside Kernighan and Ritchie: Bjarne Rules! . . . . . . . .
- Next by thread: [tlug] just a quick note... more to come later :)
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links