Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jan 2009 21:16:17 +0100
From:      Roland Smith <rsmith@xs4all.nl>
To:        Robert Huff <roberthuff@rcn.com>
Cc:        questions@freebsd.org
Subject:   Re: semi OT: 64-bit-clean code
Message-ID:  <20090107201617.GA37969@slackbox.xs4all.nl>
In-Reply-To: <18788.63932.623165.925634@jerusalem.litteratus.org>
References:  <18788.63932.623165.925634@jerusalem.litteratus.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--6c2NcOVqGQ03X4Wi
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jan 07, 2009 at 01:51:40PM -0500, Robert Huff wrote:
>=20
> 	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.

Roland
--=20
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

--6c2NcOVqGQ03X4Wi
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAkllDZEACgkQEnfvsMMhpyU1igCfT7QFxV8/TgleoWTE+Q0OgqAt
XjkAn3fNndWkLjGOmAqrV+vC+GqObNnZ
=sD+A
-----END PGP SIGNATURE-----

--6c2NcOVqGQ03X4Wi--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090107201617.GA37969>