how to tell 64 vs 32 bit architecture ?

[ Available lists | Index of freebsd-current | Month of Sep 2007 | Week of 6 Sep 2007 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Luigi Rizzo <rizzo@icir.org>
Date
6 Sep 2007 18:45:23
Subject
how to tell 64 vs 32 bit architecture ?
Message-ID
20070906111028.A83649@xorpc.icir.org


[ Hide this part ]
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


Elapsed time: 0.080 seconds