[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>

> Hi
> 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
> --
> Regards,
> Peng
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190126/b6bf9e57/attachment.html>

More information about the llvm-dev mailing list