[cfe-dev] Fwd: Makefile with Clang

Nan Zhu zhunansjtu at gmail.com
Sun Apr 25 03:06:40 PDT 2010


Actually, we have been working on this way, the key to acquire the bitcode
file is to write a "dummy_gcc" which can call cc &llvm-ld to finish the
compiling procedure, since the llvm-gcc cannot invoke llvm-ld to generate
LLVM bitcode files for you automatically



2010/4/20 Yan Lin Aung <yan_lin_aung at yahoo.com>

> I would like to have a whole program bitcode file. Any idea?
>
> --- On *Tue, 4/20/10, Nan Zhu <zhunansjtu at gmail.com>* wrote:
>
>
> From: Nan Zhu <zhunansjtu at gmail.com>
> Subject: Re: [cfe-dev] Makefile with Clang
> To: "Yan Lin Aung" <yan_lin_aung at yahoo.com>
> Cc: cfe-dev at cs.uiuc.edu
> Date: Tuesday, April 20, 2010, 1:32 PM
>
>
> You mean you want one bitcode file for each C source file or you would like
> to have a whole program bitcode file?
>
> 2010/4/20 Yan Lin Aung <yan_lin_aung at yahoo.com<http://mc/compose?to=yan_lin_aung@yahoo.com>
> >
>
>> Hi
>>
>> I would like to compile applications which consists of multiple source
>> files (for example, file1.c file2.c, main.c) with Clang using Makefile to
>> get the LLVM bitcode file. Anyone knows how to do that? Thanks.
>>
>> With regards
>> Yan Lin
>>
>>
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu <http://mc/compose?to=cfe-dev@cs.uiuc.edu>
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100425/b934b0c8/attachment.html>


More information about the cfe-dev mailing list