[LLVMdev] Cross compilation question

Joerg Sonnenberger joerg at britannica.bec.de
Mon Jun 20 14:41:47 PDT 2011


On Mon, Jun 20, 2011 at 09:51:39AM -0700, Jim Grosbach wrote:
> LLVM's bitcode is not target independent in the manner you're hoping
> for. You can't take bitcode generated for x86 and use it on ARM, for
> example, or bitcode generated for Linux and use it on Darwin.

The problem is generally not the bitcode itself, but that a lot of
target details leak into it from target specific headers. This starts by
simple issues like the pointer size and goes as far as different calling
conventions and resulting storage needs for stdarg.h.

Joerg



More information about the llvm-dev mailing list