1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-08 11:33:02 +00:00

Add ffi/jitfn for JIT compilation.

Convert a byte sequence of machine code to an
an executable pointer that can be used with ffi/call.
This commit is contained in:
Calvin Rose
2022-12-03 11:26:23 -06:00
parent 0824f45e29
commit 7a3d055012
5 changed files with 107 additions and 2 deletions

View File

@@ -171,6 +171,13 @@ extern "C" {
#endif
#endif
/* If FFI is enabled and FFI-JIT is not disabled... */
#ifdef JANET_FFI
#ifndef JANET_NO_FFI_JIT
#define JANET_FFI_JIT
#endif
#endif
/* Enable or disable the assembler. Enabled by default. */
#ifndef JANET_NO_ASSEMBLER
#define JANET_ASSEMBLER