• 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: sen testing and 64 bit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sen testing and 64 bit


  • Subject: Re: sen testing and 64 bit
  • From: Chris Hanson <email@hidden>
  • Date: Fri, 13 Jun 2008 22:31:48 -0700

On Jun 13, 2008, at 3:44 PM, Daniel Luis dos Santos wrote:

Hi. I am compiling some code with the architecture set to x86_64. When I run /usr/bin/arch it replies i386. I'm on a macbook pro intel core 2 duo qith leopard, and that sounds 64 bit (am I wrong?)

The Core 2 Duo supports both the 32-bit and 64-bit Intel architecture, so you're correct.


What version of Xcode are you using?

I have some tests that are to be run from the sen testing script. I also run them from a main function on a target for debugging. When runned from the target every thing runs fine. When running from the script I get errors from tests that compare bytes read from a file. Looks like the test framework is assuming something 32 bit. I then set all the variables (ARCH, VALID_ARCHS, NATIVE_ARCH_ACTUAL) to the value x86_64, but the result is the same.


As long as you're using Xcode 3.0 or later, Xcode will use whatever you've set as the value of the Architectures (ARCHS) build setting in your active configuration to determine what architectures to run tests for.

You shouldn't need to change VALID_ARCHS at all — it defaults to quad- Universal — and you should never explicitly set NATIVE_ARCH_ACTUAL in your project or target; Xcode will set that itself. Just setting

ARCHS = x86_64

should be sufficient to tell Xcode to run your unit tests for x86_64 on Core 2 Duo hardware.

  -- Chris

_______________________________________________
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: 
 >sen testing and 64 bit (From: Daniel Luis dos Santos <email@hidden>)

  • Prev by Date: Re: Latest Core Reference Library breaks Xcode bookmarks
  • Next by Date: Re: Problem with BOOST library xcode 3 (10.5)
  • Previous by thread: sen testing and 64 bit
  • Next by thread: Re: sen testing and 64 bit
  • Index(es):
    • Date
    • Thread