[LLVMdev] Emit C

Charles Davis cdavis at mymail.mines.edu
Mon Sep 13 09:39:19 PDT 2010


On 9/13/10 10:32 AM, F van der Meeren wrote:
> Hello,
> 
> I am trying to emit C code from the module I just created. And this from LLVM-C.
> If someone could give me a pointer on how to do this in llvm (with C++) I might be able to figure it out how to do it in LLVM-C or write my own LLVM-C wrapper for it.
Easy. LLVM has a backend for this. Just make like you're emitting code
as usual, except, when you tell LLVM which backend to use, you tell it
to use the "C Backend".

Chip



More information about the llvm-dev mailing list