[LLVMdev] Can clang generate the same bitcode with the toolchains that have same version of libraries but different targets

Kenia Kuo kenkillerkuo at gmail.com
Tue Sep 25 07:49:18 PDT 2012


Hi Óscar,

Thank you for your reply.

It looks like the limitations are the platform's API and ABI (included the
size of variable).
So, if there are two platforms that have the same API, ABI but different
ISAs, the bitcode can be shared. Can I say that?

Thanks,
Kenia Kuo

2012/9/25 Óscar Fuentes <ofv at wanadoo.es>

> Kenia Kuo <kenkillerkuo at gmail.com> writes:
>
> [snip]
>
> > Currently, I tried the toolchains of ARM and PowerPC that have the
> > different versions of libraries, obviously the generated bitcode are
> > different.
> > So I wonder whether the version of library is the only reason why the
> > generated bitcode are different.
>
>
> http://llvm.org/docs/FAQ.html#can-i-compile-c-or-c-code-to-platform-independent-llvm-bitcode
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120925/72fb6a1f/attachment.html>


More information about the llvm-dev mailing list