[LLVMdev] Re: C back-end for llvmg++

Vikram Adve vadve at cs.uiuc.edu
Fri Nov 19 19:51:01 PST 2004


On Nov 19, 2004, at 9:25 PM, Mohd-Hanafiah Abdullah wrote:

> Dear Dr Vikram:
>
> I need to know how to invoke llvmg++ so that it generates C code.

Here's how you can do a single file (i.e., an unlinked executable):

	llvmg++ -c infile.cpp -o - | llc -march=c -o infile.cbe.c

Reid might be able to tell you how to do it with a single command using 
the llvmc tool.

In future, please send your questions to llvmdev at cs.uiuc.edu (and add 
yourself to that list if you're not on it, because all replies go to 
the list by default).

>
> Thanks and kind regards
>
> Napi
>
>

Good luck,

--Vikram
http://www.cs.uiuc.edu/~vadve
http://llvm.cs.uiuc.edu/


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 720 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20041119/e13ee6a7/attachment.bin>


More information about the llvm-dev mailing list