• 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 15:06:11 -0400
  • Thread-topic: How to conditionally compile by architecture?

on 10/18/12 2:08 PM, Nick Zitzmann at email@hidden wrote:

> You don't want to do this, because if the OS gets ported to, say, SuperH or
> MIPS, then you'll have additional work to accomplish. Use __BIG_ENDIAN__ and
> __LITTLE_ENDIAN__ instead if all you care about is compiling conditionally
> based on the endian-ness of the CPU.

Thanks! Sounds like it may be what I need for this...

>
> But why not instead use the swap-big-to-host functions that are in Foundation
> and CoreFoundation? That way you won't have to use #ifdefs at all if all you
> need to do is byte-swapping based on architecture.

Because I already have a Windows version of the same software, and I already
have all my byte-swapping code from that (including a ton of custom resource
byte-swapping functions, not to mention PowerPlant), so I think that
integrating that into the Mac version conditionally is perhaps the easier
way to go (for me).

- 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

  • Follow-Ups:
    • Re: How to conditionally compile by architecture?
      • From: Alexander von Below <email@hidden>
References: 
 >Re: How to conditionally compile by architecture? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: How to conditionally compile by architecture?
  • Next by Date: Re: xcodebuild archive fails if given -target; OK if -scheme
  • Previous by thread: Re: How to conditionally compile by architecture?
  • Next by thread: Re: How to conditionally compile by architecture?
  • Index(es):
    • Date
    • Thread