[llvm-dev] Is LLVM IR cross platform?
Reid Kleckner via llvm-dev
llvm-dev at lists.llvm.org
Wed Feb 10 15:24:23 PST 2016
No, most LLVM IR has target-specific constructs, such as sizeof(int) or
va_next handling, baked into it:
http://llvm.org/docs/FAQ.html#can-i-compile-c-or-c-code-to-platform-independent-llvm-bitcode
In special cases it is possible to construct LLVM IR that is portable. This
is essentially what projects like PNaCl do.
On Wed, Feb 10, 2016 at 2:46 PM, mahdi via llvm-dev <llvm-dev at lists.llvm.org
> wrote:
> For example, can I use `llc` to compile same LLVM IR file on both linux
> and windows?
>
>
> Best Regards
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160210/9cae3707/attachment.html>
More information about the llvm-dev
mailing list