[LLVMdev] Understanding resolving external/built-in function references
Bill Kelly
billk at cts.com
Mon Jun 6 03:51:48 PDT 2011
Hi,
I'm new to LLVM, so I hope my question is well-formed.
Given a printf("Hello World") program saved as bitcode,
I'm attempting to understand how LLVM resolves links to
built-in functions like printf() when the bitcode is
loaded.
I'm supposing something along the lines of a
Linker::ItemList may exist somewhere which provides
names and addresses of built-in functions(?)
On a related note, I'm wondering how one would make
one's own built-in functions like myprintf() or such,
available so that bitcode, when loaded, could link
with them?
(Apologies if this is an RTFM.)
Thanks for any help,
Bill
More information about the llvm-dev
mailing list