diff options
| author | Hanjie Wu <hanjiew@andrew.cmu.edu> | 2022-12-08 20:10:53 -0500 |
|---|---|---|
| committer | Hanjie Wu <hanjiew@andrew.cmu.edu> | 2022-12-08 20:10:53 -0500 |
| commit | 78061fe66132bf053ed70c5a1d3cf1d9e2495afa (patch) | |
| tree | 562ab1ece2df3ae4b37d088bcc284eeecb6ce286 /weerun.c | |
| parent | a054755b62e660d3d8aba42fdb0a992e2d215599 (diff) | |
add option to choose from JIT/interpertermain
Diffstat (limited to 'weerun.c')
| -rw-r--r-- | weerun.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -8,6 +8,9 @@ #include "ir.h" #include "weewasm.h" +extern uint32_t jit_enable; +extern uint32_t jit_check; + // Initialize the runtime functions. void init_runtime(); void init_libc_runtime(); @@ -33,6 +36,14 @@ int main(int argc, char* argv[]) { g_disassemble = 1; continue; } + if (strcmp(arg, "-no-jit") == 0) { + jit_enable = 0; + continue; + } + if (strcmp(arg, "-no-jit-check") == 0) { + jit_check = 0; + continue; + } byte* start = NULL; byte* end = NULL; |
