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

Lowell Gilbert freebsd-questions-local at be-well.ilk.org
Wed Mar 17 16:50:52 UTC 2010


Martin McCormick <martin at dc.cis.okstate.edu> 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
		http://be-well.ilk.org/~lowell/


More information about the freebsd-questions mailing list