Re: Detecting CPU type
Re: Detecting CPU type
- Subject: Re: Detecting CPU type
- From: Heinrich Giesen <email@hidden>
- Date: Fri, 16 Sep 2005 17:02:45 +0200
On 16.09.2005, at 15:25, Peter wrote:
I would like to find out CPU Type (PPC or x86),
At runtime you can use a UNIX function:
#include <mach-o/arch.h>
NXArchInfo *info = NXGetLocalArchInfo();
printf( "name = %s\n", info->name );
printf( "description = %s\n", info->description );
. . . .
see UnixManual for arch in chapter 3:
/usr/share/man/man3/arch.3
--
Heinrich Giesen
email@hidden
_______________________________________________
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