[llvm-dev] How does LLVM know where to resolve declared only functions?
Jeremy Lakeman via llvm-dev
llvm-dev at lists.llvm.org
Fri Jan 25 20:27:39 PST 2019
It's the linkers job to hook together functions and definitions that end up
in the same binary. Your OS will then hook in functions from other binaries
when your executable is loaded into memory.
On Sat, 26 Jan 2019 at 12:43, Peng Yu via llvm-dev <llvm-dev at lists.llvm.org>
> In the generated .ll file, it may have something like this. How does
> LLVM know where to look for the definition of printf? Is it documented
> somewhere? Thanks.
> declare i32 @printf(i8*, ...) #1
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev