• 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: synthesised variables on 64-bit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: synthesised variables on 64-bit


  • Subject: RE: synthesised variables on 64-bit
  • From: "Randy Widell" <email@hidden>
  • Date: Mon, 6 Oct 2008 15:40:44 -0400

> Are you running the app in the debugger? If you're building a 4-way
> universal binary, then the debugger will always launch the 32-bit
> version of the executable, even if you're using a 64-bit Mac.
>
> If you want to build the app for 64-bit only, then you have to
> manually set the architectures to "ppc64 x86_64" instead of using a
> pre-set value. Also, Xcode 3.1's debugger doesn't work correctly with
> 64-bit executables. I haven't checked to see if they fixed this bug in
> 3.1.1, but they did work correctly in 3.0.

This brings up a question I had a while ago, but never asked and about which
I forgot.  I tried making a 64-bit app in Xcode 3.0 a while ago and set the
architectures, as you mentioned, to "ppc64 x86_64".  When I ran the app,
sizeof(long) was still 4 on a Core2 Duo running Leopard.  I found a compiler
option called "Use 64-bit Math".  After enabling that, sizeof(long) was 8.
I was never sure if that was correct behavior, but, as I said, I just forgot
about it.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >synthesised variables on 64-bit (From: Stig Brautaset <email@hidden>)
 >Re: synthesised variables on 64-bit (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: synthesised variables on 64-bit
  • Next by Date: Re: wasting space?
  • Previous by thread: Re: synthesised variables on 64-bit
  • Next by thread: IKImageView and delegate callback/notification of image changes
  • Index(es):
    • Date
    • Thread