• 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
determine if a CPU is Intel 64-bit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

determine if a CPU is Intel 64-bit


  • Subject: determine if a CPU is Intel 64-bit
  • From: Scott Ribe <email@hidden>
  • Date: Tue, 26 Mar 2013 09:19:47 -0600

You'd think using sysctl to check the value of hw.machine for x86_64 would do it, but I recently came across a user with a 2009 iMac with a 64-bit CPU which reported i386 (running OS X 10.6.8)...

So what other way is there for a 32-bit process to *reliably* discover if it's running on a 64-bit capable CPU? (Regardless of whether the OS is 64-bit.) Will I have to get hw.model and then verify the CPU myself?

(If the question seems odd, it's because there's 2 different apps involved. One which only has a 64-bit Intel build, and ran fine on that iMac, once I tweaked the installer package to stop checking hw.machine, which is how I know this is not reliable. The other is currently 32-bit only, and I want it to report CPU capability to my server, so that I can locate all machines that need to be upgraded before I can switch to 64-bit only.)

--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice





 _______________________________________________
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: determine if a CPU is Intel 64-bit
      • From: Ronald Oussoren <email@hidden>
  • Prev by Date: Re: Is the force_load flag still necessary?
  • Next by Date: Re: determine if a CPU is Intel 64-bit
  • Previous by thread: Re: Is the force_load flag still necessary?
  • Next by thread: Re: determine if a CPU is Intel 64-bit
  • Index(es):
    • Date
    • Thread