Re: command-line test for 64-bit hardware?
Re: command-line test for 64-bit hardware?
- Subject: Re: command-line test for 64-bit hardware?
- From: "Kyle Sluder" <email@hidden>
- Date: Wed, 5 Sep 2007 15:32:05 -0400
`sysctl -n hw.optional.x86_64' will give you what you want. Though,
since this is going to be used from a shell, you'll probably want to
wrap it in a test, because sysctl returns 0 for no and 1 for yes.
--Kyle Sluder
On 9/5/07, Greg Guerin <email@hidden> wrote:
> John Reppy wrote:
>
> >Is there an easy way using the command line to distinguish between Intel
> >Core and
> >Core 2 processors on Tiger? I want to use autoconf to configure my
> >makefiles for
> >a 64-bit build on Core 2 systems, but the usual config.guess and uname
> >commands
> >do not make any distinction.
>
> system_profiler SPHardwareType | grep Processor
>
> There's probably a sysctl value, too, but I don't know how you'd decode the
> numbers, off the top of my head.
>
> sysctl hw | grep cpu
>
> -- GG
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden