• 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
One byte bool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

One byte bool


  • Subject: One byte bool
  • From: Mark Stultz <email@hidden>
  • Date: Tue, 14 Mar 2006 16:18:44 -0600

Hello,

I'm in the process of converting our game library into Universal Binaries
(fun!)  I got everything up and built in about 30 minutes.  I've only ran
into issues due to structures using bool's (sigh).  Of course, the default
size is 4 bytes on PPC and 1 byte on x86.

The option...
"Use a size of 1 byte (instead of 4 bytes) for the 'bool' type.
[GCC_ONE_BYTE_BOOL, -mone-byte-bool]

Warning: this setting generates code that may not binary compatible with
code generated without this setting or with Mac OS X frameworks."

...does exist.  That warning scares me.  As does that typo: "may not binary
compatible".  What real issues can I expect to encounter with this?  Moving
forward, I'm not opposed to using a uint8 instead of a bool.  Would that be
a better option?

Mark

 _______________________________________________
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: One byte bool
      • From: Damien Bobillot <email@hidden>
    • Re: One byte bool
      • From: Ben <email@hidden>
    • Re: One byte bool
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Xcode preference gives me hope
  • Next by Date: Re: One byte bool
  • Previous by thread: Re: Xcode preference gives me hope
  • Next by thread: Re: One byte bool
  • Index(es):
    • Date
    • Thread