semi OT: 64-bit-clean code
rsmith at xs4all.nl
Wed Jan 7 12:16:20 PST 2009
On Wed, Jan 07, 2009 at 01:51:40PM -0500, Robert Huff wrote:
> Is there a good guide anywhere to writing 64-bit-clean code?
> Something that's thorough but understandable, possibly with examples
> of the trickier bits.
Do not assume that the size of a void* equals the size of an integer and
you're probably halfway there.
For the rest, searching for '64-bit-clean' will give you thousands of links.
Test your code on both a 64-bit and 32-bit machine. One of them can be a
virtual machine, of course.
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090107/9170514f/attachment.pgp
More information about the freebsd-questions