[LLVMdev] Create ObjectFile with C bindings

gtsiour gtsiour at softlab.ntua.gr
Tue Feb 7 03:26:03 PST 2012


Hey!

I've been studying the LLVM C bindings (include/llvm-c/) and it 's not 
very clear to me how I could create an ELF object file with them.

Function "LLVMCreateObjectFile" (in Object.h) needs an 
"LLVMMemoryBufferRef" object but I'm not sure how I should create one 
using the created "LLVMModuleRef".

The reason why I want to use the C bindings and not the C++ interface 
is because I use them through some Erlang NIFs [1]. I apologize if it's 
something obvious that I'm missing!


Best,
Yiannis

[1]: http://www.erlang.org/doc/tutorial/nif.html

-- 
Yiannis Tsiouris
Ph.D. student,
Software Engineering Laboratory,
National Technical University of Athens
WWW: http://www.softlab.ntua.gr/~gtsiour



More information about the llvm-dev mailing list