Automatic Way to Tell if a FreeBSD system is 64 or 32-bit?

Lowell Gilbert freebsd-questions-local at
Wed Mar 17 16:50:52 UTC 2010

Martin McCormick <martin at> writes:

> 	One thing I discovered while trying this command out on
> various systems is that if the system was originally built using
> i386 code, it reports as i386 even though there is a 64-bit
> platform struggling to get out.

That sounds correct to me.  It's reporting the architecture of the OS,
not of the CPU, and that's what you actually need to know.

Lowell Gilbert, embedded/networking software engineer, Boston area

More information about the freebsd-questions mailing list