Re: llvm-gcc
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