• 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: llvm-gcc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: llvm-gcc


  • Subject: Re: llvm-gcc
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Tue, 8 Sep 2009 10:06:42 +0200


Le 8 sept. 2009 à 09:49, Ariel Feinerman a écrit :

"Binary" is not what you are asking, I think.
If you compile a project in Xcode, the resulting code will be executable on
the processor type that you have selected (x86, ppc, or x86-64), and you
will be able to run them on your mac.


Is that what you wanted to know?

Yes, it is. My English is not so well, so I sometimes confuse with it. I believed "binary" means the resulting code that runs on the processor *directly* as opposed to "bitcode" that runs on the VM or compiled every time.

Theoretically the bytecode compiles everywhere, but in practice, when you compile C languages, that's usually not true
GCC and clang LLVM front ends generate architecture dependent bytecode.


For example, compiling printf("%zu", sizeof(long)); will not produce the same llvm bytecode for x86_64 and for i386 (on most OS).

That's why as long as we are using architecture dependent languages, we have to compile once per architecture.


_______________________________________________ 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: 
 >llvm-gcc (From: Ariel Feinerman <email@hidden>)
 >Re: llvm-gcc (From: Brent Gulanowski <email@hidden>)
 >llvm-gcc (From: Ariel Feinerman <email@hidden>)
 >Re: llvm-gcc (From: Jens Alfke <email@hidden>)
 >Re: llvm-gcc (From: Ariel Feinerman <email@hidden>)
 >Re: llvm-gcc (From: Marshall Clow <email@hidden>)
 >Re: llvm-gcc (From: Ariel Feinerman <email@hidden>)

  • Prev by Date: Re: llvm-gcc
  • Next by Date: Re: Breakpoints keep getting turned off
  • Previous by thread: Re: llvm-gcc
  • Next by thread: Overriding private method w/o warning
  • Index(es):
    • Date
    • Thread