SICStus Prolog 4.3 added a JIT compiler for x86-64 processors.
I have two questions regarding the JIT compiler.
First, where can I find some documentation (papers, notes, or memos) on the capabilities (and limitations, design, and techniques) of the JIT compiler?
And second, can SICStus be directed to emit the x86-64 assembly code produced by the JIT compiler?
mmap
s ormprotect
s with PROT_EXEC flag), and also you can check /proc/PID/maps (or smaps; PID is pid of active SICStus process) and search for memory segments with x (exec) flag. But this information will allow you only to dump jitted code (for example with gdb, breakpointing on mmap/mprotects with PROT_EXEC and watching for writes to segments; dumping the mem; possibly disassembling the machine code), but not to find documentation, papers, patents; no direct info on limitations... – Riata