[QUESTION] Using host functions in AOT mode
Stephan Dollberg
stephan.dollberg@gmail.com
Wed Jul 14 17:32:54 GMT 2021
Hello,
in jit compilation mode I can call functions from the host binary by
using gcc_jit_context_new_call_through_ptr.
This doesn't work in AOT mode. Is there any way to include host
functions when compiling a binary in AOT mode?
GCC_JIT_OUTPUT_KIND_EXECUTABLE mentions that there is currently no
support for linking. I could see a work around where instead you
compile to GCC_JIT_OUTPUT_KIND_OBJECT_FILE and externally invoke gcc
to link your host/runtime and AOT-compiled functions together.
Cheers,
Stephan
More information about the Jit
mailing list