[LLVMdev] Compiling glibc with LLVM
Rafael Ávila de Espíndola
rafael.espindola at gmail.com
Thu Jan 26 09:59:03 PST 2012
On 26/01/12 10:54 AM, Nipun Arora wrote:
> Hi,
>
> I read on the gentoo website http://en.gentoo-wiki.com/wiki/Llvm that
> glibc cannot be compiled using llvm because of some GNU extensions which
> LLVM does not support.
I am sure there is more than one gcc dependency in glibc, but the main
one I can remember is its use of -fno-toplevel-reorder, which we really
don't want to have in llvm/clang.
> Has there been any success in compiling glibc using LLVM so as to get
> the bytecode?
> We are looking to do whole program analysis to look at control flows
> including those in libc... we were hoping that we could get the control
> flows using LLVM API's for glibc.
>
> Has anyone tried this before?
>
> Thanks
> Nipun
>
Cheers,
Rafael
More information about the llvm-dev
mailing list