• 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: Chart For ARCHS vs SDKs vs GCC?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Chart For ARCHS vs SDKs vs GCC?


  • Subject: Re: Chart For ARCHS vs SDKs vs GCC?
  • From: Michael Rawdon <email@hidden>
  • Date: Fri, 4 Sep 2009 15:04:11 -0700

Hi Brian -

On Sep 1, 2009, at 3:52 PM, Brian Barnes wrote:
Is there a chart somewhere for which compiler/arch/sdk fit together so I can find the best fit for my project?  For instance, I want to target PPC and i386 (32-bit, obviously), 10.4.  I suspect I use gcc 4.0 for PPC, and I suspect I can use Clang LLVM for i386, but it would be nice to have a chart.  Figuring out what works and what doesn't seems to be a game of try it and find out!

I don't know if there's a chart, but I can try to answer your specific questions:

Clang doesn't support PPC, although it should work fine when building for Intel for 10.4.  (Clang also doesn't support C++ files, although you won't need to set an extra compiler for those - if you have any; when Clang is selected, Xcode will fall back to using LLVM-GCC-4.2 for files that can't be compiled with Clang.  This includes PPC files.)

I think GCC 4.2 won't work for 10.4, so I think you need to use GCC 4.0 for that.

So yes, I think you're right: You use GCC-4.0 for PPC, and Clang for Intel.

Also, do I have to add additional linker commands (or a different linker) for Clang?  It seems to throw a lot of symbol(s) not found errors.

You shouldn't need to; Clang should support the same arguments - as either compiler or linker driver - as GCC does.  If you think you've found a case where that isn't so, please file a bug.

(The idea was to make Clang as much a drop-in replacement for GCC as possible.)

-- 
Michael Rawdon

email@hidden
Xcode Developer

Apple Inc., Cupertino CA




 _______________________________________________
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: 
 >Chart For ARCHS vs SDKs vs GCC? (From: Brian Barnes <email@hidden>)

  • Prev by Date: Re: documentation window scrolls its contents spontaneously
  • Next by Date: Re: documentation window scrolls its contents spontaneously
  • Previous by thread: Chart For ARCHS vs SDKs vs GCC?
  • Next by thread: Debugger not attaching when I run on Simulator
  • Index(es):
    • Date
    • Thread