[LLVMdev] I try to compile to LLVM code

Borneq borneq at wp.pl
Thu Aug 12 23:36:07 PDT 2010



Samuel Crow wrote:
> 
> If you want to compile bitcode into assembly, you need to invoke the
> llvm-as and 
> llc commands on it to convert it from LLVM Assembly source to bitcode and
> then 
> native assembly source instead of llvm-gcc.
> 
llvm-as compiled hello.s to hello.s.bc. How link it with stdio - I use
printf
llc is virtual machine? If I call llc with hello.s.bc it do nothing (because
printf not linked)
LLVM serve garbage collection? How use it? If I write "p=malloc(100)" it
probably not free with GC. How write finalizer method called before free?

-- 
View this message in context: http://old.nabble.com/I-try-to-compile-to-LLVM-code-tp29411016p29426020.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.




More information about the llvm-dev mailing list