The LLVM compiler compiler has gcc, which is compatible with regular gcc. The advantage of using llvm-gcc is that it goes to an arbitrary target, that is, normal gcc will not say any such goal when you try to compile a random architecture, say mips-apple-darwin. However, llvm-gcc will actually build the compiler for Mac OS X on the mips processor.
Here's the trick, however: to create a random target, you already need the binoculars created for this purpose. Therefore, if you have a target that llvm will compile but binutils cannot, you cannot make a compiler because GNU Binutils does not support this target.
So ... Here's the question: is there an equivalent llvm-binutils like llvm-gcc compatible with GNU Binutils? (which means that it is building an arbitrary goal, not one of the list.)
EDIT:
Arbitrary, I mean that I do not select the target when I run llvm-gcc, I choose the target when I compile llvm-gcc. Meaning: if I try to compile GCC for mips-apple-darwin, I get an unsupported target. But if I create llvm-gcc for mips-apple-darwin, it works as long as I have mips-apple-darwin-as and mips-apple-darwin-ld.
source share