File: runtime.md

package info (click to toggle)
moarvm 2020.12%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 18,652 kB
  • sloc: ansic: 268,178; perl: 8,186; python: 1,316; makefile: 768; sh: 287
file content (24 lines) | stat: -rw-r--r-- 682 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Runtime Configuration

The JIT compiler can be switched off using the environment variable:

    MVM_JIT_DISABLE=1

The JIT compiler can write a log file, which is useful only for
debugging JIT problems. The path to the log file can be given
as an environment variable:

   MVM_JIT_LOG=path/to/logfile.txt

Finally, the JIT compiler can write binary dumps of compiled frames
in a directory. These binaries are also primarily useful as a
debugging aid.

   MVM_JIT_BYTECODE_DIR=a/dir

The following command serves to disassemable a JIT compiled frame
(assuming you have GNU objdump installed as objdump):

   objdump -b binary -D -m i386:x86-64 -M intel $frame-name-jit-code.bin