• 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: How to conditionally compile by architecture?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to conditionally compile by architecture?


  • Subject: Re: How to conditionally compile by architecture?
  • From: Stephen Kay <email@hidden>
  • Date: Thu, 18 Oct 2012 19:30:00 -0400
  • Thread-topic: How to conditionally compile by architecture?

on 10/18/12 7:10 PM, Dan Korn at email@hidden wrote:


> #ifdef __ppc__
> // PowerPC
> #elif defined(__i386__) || defined(__x86_64__)
> // Intel
> #else
> // something else
> #endif


Thanks!


> But I agree with Andrew; you should have very few reasons to use these for
> Mac-specific code, since most of the APIs you would be calling in C/C++
> shouldn't vary much between PowerPC and Intel.  You're mainly going to be
> concerned with endianness.

I agree with you; I just wanted to know what the symbols were in case I ever
needed them. Thanks again.

- Stephen

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Stephen Kay
Karma-Lab :: developers of KARMA
http://www.karma-lab.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



 _______________________________________________
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: 
 >Re: How to conditionally compile by architecture? (From: Dan Korn <email@hidden>)

  • Prev by Date: Re: Xcode 3.2.6 on 10.8?
  • Next by Date: "OSStatus error 100021" when trying to verify my app for App Store
  • Previous by thread: Re: How to conditionally compile by architecture?
  • Next by thread: Xcode 3.2.6 on 10.8?
  • Index(es):
    • Date
    • Thread