Re: Detecting CPU type
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