[LLVMdev] Output to a DLL
Óscar Fuentes
ofv at wanadoo.es
Thu Jun 11 09:27:22 PDT 2009
Olivier Meurant <meurant.olivier at gmail.com> writes:
> When you say "spit bitecode from the JIT the first time, load it on
> subsequent sessions" :
> - do you want to write the IR in a file via BitcodeWriter and re-read it via
> BitcodeReader ? (you will pay the cost of native code emission on each load
> ?)
Yes. It is a small cost compared with compiling all the way from the
source code.
> - do you want to write the native code ? In that case, how do you retrieve
> the size of the buffer prepared by the "getPointerToFunction" method ? Is it
> safe ? I was wondering on how memory access to global variable will come
> back in this case ?
I don't want to write and read native code because it is not relocatable.
--
Óscar
More information about the llvm-dev
mailing list