• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: command-line test for 64-bit hardware?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: command-line test for 64-bit hardware?
      • From: Steve Checkoway <email@hidden>
  • Prev by Date: Re: command-line test for 64-bit hardware?
  • Next by Date: Re: command-line test for 64-bit hardware?
  • Previous by thread: Re: command-line test for 64-bit hardware?
  • Next by thread: Re: command-line test for 64-bit hardware?
  • Index(es):
    • Date
    • Thread