Chip Salzenberg on 27 Apr 2004 01:53:02 -0000


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

[PLUG] Re: #define for 32 vs 64 bit C program?


According to Tobias DiPasquale:
> If the intended audience of the compiler is a modern architecture
> with an intelligent memory model, it doesn't make any sense NOT to
> have unsigned long be equal to the word size ...

Well, just because something doesn't make sense doesn't mean
somebody's not going to do it.

> Speaking of this issue, the Linux kernel handles the word size issue
> nicely.  You might want to check that out to see how its really done ;-)

The Linux kernel isn't as portable as ISO C.
-- 
Chip Salzenberg               - a.k.a. -               <chip@pobox.com>
"I wanted to play hopscotch with the impenetrable mystery of existence,
    but he stepped in a wormhole and had to go in early."  // MST3K
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug