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

Re: determine CPU type at runtime


  • Subject: Re: determine CPU type at runtime
  • From: Brian Stern <email@hidden>
  • Date: Mon, 25 Feb 2008 17:22:37 -0500


On Feb 25, 2008, at 4:48 PM, Paul Archibald wrote:

One of the apps I am working on has minor issues when running on an Intel Mac, so I would like to be able to detect the cpu type at runtime. I just need a method like:

bool ThisAppIsRunningOnAPowerPC()
{
#ifdef __POWERPC__
	return true;
#else
	return false;
#endif
}

Does that work for you? I assume you don't need to detect Rosetta or the exact cpu type.


-- Brian Stern email@hidden



_______________________________________________
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


References: 
 >determine CPU type at runtime (From: Paul Archibald <email@hidden>)

  • Prev by Date: Re: Xcode Plugin API
  • Next by Date: Re: determine CPU type at runtime
  • Previous by thread: determine CPU type at runtime
  • Next by thread: Re: determine CPU type at runtime
  • Index(es):
    • Date
    • Thread