FROM : Douglas Davidson
DATE : Wed Feb 06 21:34:34 2008
On Feb 6, 2008, at 11:41 AM, Jon Gotow wrote:
> Digging through some darwin code, I found the "sysctl.proc_cputype"
> sysctl token. THAT gives the right results. On my Core 2 Duo, when
> I check a running process, I now get a cpu type of:
>
> cpu_type = (CPU_TYPE_X86 | CPU_ARCH_ABI64)
>
> if the process is running in 64 bit mode.
I believe there is also a "hw.cpu64bit_capable" sysctl if you want to
determine specifically what the hardware can do.
Douglas Davidson
DATE : Wed Feb 06 21:34:34 2008
On Feb 6, 2008, at 11:41 AM, Jon Gotow wrote:
> Digging through some darwin code, I found the "sysctl.proc_cputype"
> sysctl token. THAT gives the right results. On my Core 2 Duo, when
> I check a running process, I now get a cpu type of:
>
> cpu_type = (CPU_TYPE_X86 | CPU_ARCH_ABI64)
>
> if the process is running in 64 bit mode.
I believe there is also a "hw.cpu64bit_capable" sysctl if you want to
determine specifically what the hardware can do.
Douglas Davidson






Cocoa mail archive

