[llvm-dev] How to call C function 'malloc' ?

AllenShow via llvm-dev llvm-dev at lists.llvm.org
Thu Dec 3 05:03:06 PST 2015


Hi, everyone.
I am new to llvm and I want to use C function “malloc" and “free" to do heap allocation, but It seems it is not a built-in function like ‘’printf” so I got an error “Unknown extern function”.
I use ExecutionEngineer to run my main function and how should I do to make EE link the C library I want.
Thanks.


More information about the llvm-dev mailing list