• 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: Detecting CPU type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting CPU type


  • Subject: Re: Detecting CPU type
  • From: "John C. Randolph" <email@hidden>
  • Date: Fri, 16 Sep 2005 06:52:14 -0700


On Sep 16, 2005, at 6:41 AM, Graham J Lee wrote:

On 16 Sep 2005, at 14:07, Clark Cox wrote:


2005/9/16, Peter <email@hidden>:


Hello,

I would like to find out CPU Type (PPC or x86), Gestalt seems to be
discontinued and sysctl seems not too friendly (hw.cputype: 18 ???).
Please let me know which is function or Cocoa class to be use.



Why wait until runtime to figure that out (i.e. the type of processor that you're compiling for is known at compile time):


Purely because I'm that kind of person - I don't have a DTK and am not about to get one - I wonder what happens if you determine the arch at runtime from a PPC binary running on an x86 Darwin with rosetta...

Rosetta will tell your app that it's running on a PPC.

-jcr



John C. Randolph <email@hidden> (408) 914-0013
Roaming Cocoa Engineer,
Available for your projects at great Expense and Inconvenience.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Detecting CPU type (From: Peter <email@hidden>)
 >Re: Detecting CPU type (From: Clark Cox <email@hidden>)
 >Re: Detecting CPU type (From: Graham J Lee <email@hidden>)

  • Prev by Date: Re: Detecting CPU type
  • Next by Date: Adding menus to main menu
  • Previous by thread: Re: Detecting CPU type
  • Next by thread: Re: Detecting CPU type
  • Index(es):
    • Date
    • Thread