how to tell 64 vs 32 bit architecture ?

Luigi Rizzo rizzo at icir.org
Thu Sep 6 11:45:23 PDT 2007


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


More information about the freebsd-current mailing list