how to tell 64 vs 32 bit architecture ?

From: Luigi Rizzo <rizzo_at_icir.org>
Date: Thu, 6 Sep 2007 11:10:28 -0700
hi,
i was wondering what is the proper way to tell a 64 vs 32 bit architecture.

I see that some code in sys/ uses  ' #ifdef __LP64__ ' but i am not
sure if this is generic enough (ie not gcc or FreeBSD specific),
and also suitable for userland (i.e. works on linux or other platforms
as well).

	cheers
	luigi
Received on Thu Sep 06 2007 - 16:45:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:17 UTC