From: Luke Lau Date: Mon, 3 Jun 2019 14:48:04 +0000 (+0100) Subject: Add JIT X-Git-Url: http://git.lukelau.me/?p=kaleidoscope-hs.git;a=commitdiff_plain;h=7b8ef6725099f09b81f8c39ca6f00dec14213bed Add JIT We have LLVM IR now, but our computers still can't run it. We could compile our code "offline" and write it to a file, but LLVM also provides frameworks for JITing: Just-in-time compilation. This is where the code is compiled just before it is run, and we will be using it make an interactive REPL. Note that JITs are not the same as interpreters: An interpreter reads the program and directly computes the result. A JIT reads the program and generates more code for the computer to run, which then computes the result. The current LLVM Kaleidoscope tutorial uses the old MC JIT framework: This tutorial will be using the fancy new OrcJIT framework. It's a bit more complicated but provides a lot more flexibility. --- 7b8ef6725099f09b81f8c39ca6f00dec14213bed