Re: One byte bool
Re: One byte bool
- Subject: Re: One byte bool
- From: Fritz Anderson <email@hidden>
- Date: Tue, 14 Mar 2006 16:26:20 -0600
On 14 Mar 2006, at 4:18 PM, Mark Stultz wrote: 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?
It should scare you. Imagine a struct with four bools in it. An i386 compiler would feel free to pack them into four bytes; a ppc compiler will spread them among 16 bytes. Nothing good will come of sharing such structs between a normally-compiled ppc library (like all the system frameworks) and a one-byte-compiled ppc application.
uint8 sounds like an excellent idea.
-- F
|
_______________________________________________
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