Re: Determining architecture type at run time
Re: Determining architecture type at run time
- Subject: Re: Determining architecture type at run time
- From: Arnab Ganguly <email@hidden>
- Date: Mon, 27 Apr 2009 16:32:40 +0530
NXArchInfo *arch = NXGetLocalArchInfo(); // use this , present in arch.h
Thanks
-A
On Mon, Apr 27, 2009 at 3:48 PM, Steve Checkoway
<email@hidden> wrote:
On Apr 27, 2009, at 2:11 AM, rohan a wrote:
I need to determine at program run time, the architecture
type(x86, ppc or x86_64) of the Mac OS X machine. Is it possible to do this?
Does Mac OS provide any API for this?
Your code is compiled for a particular architecture. This is known at compile time. Why defer it to run time?
--
Steve Checkoway
"Anyone who says that the solution is to educate the users
hasn't ever met an actual user." -- Bruce Schneier
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev 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.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden