1951FDG
10/18/2013 - 9:13 PM

64-bit stuff

64-bit stuff

The following one-liner will work on ppc or intel boxes and will return 1 if the computer is 64-bit capable or 0 if it is not.
sysctl -n hw.optional.x86_64
sysctl -a | grep freq

uname -a
uname -p
arch

hw.optional.64bitops
hw.cpusubtype

OSKextGetRunningKernelArchitecture
define kBootConfig "/Library/Preferences/SystemConfiguration/com.apple.Boot.plist"

PStates Code:
ioreg -lw0 | grep PerformanceStateArray

CStates Code:
ioreg -lw0 | grep CSTInfo
ioreg -lw0 | grep AICPMVers