Skip to content

JIT(Just In Time) Compile

skyrabbit edited this page May 16, 2020 · 2 revisions

native interface

Natives are dynamically loaded as .dll (on windows) or .so (on ubuntu). For example, print_int is defined in librcwt.dll and loaded before VM calls virtual_execute.

JIT

VM dynamically translates hot vProcedure to C function and invokes clang++ to compile C function into DLL. After that, the DLL are going to be treated as natives.

Clone this wiki locally