~/talk

Create your own Interpreter with a JIT in 1 hour

Talkat GeeCON 2019 · 2019-05-15..05-17· [compilers-and-language-design]
slides:none on file

Shows how to use Eclipse OMR with the JITBuilder and InterpreterBuilder to write one interpreter that automatically yields a JIT for a tiny stack VM called EL, with live-coding of handlers for push/add/return/jump and helper calls. Compilation triggers after about 10 executions, produced native C-callable methods, and moves a Fibonacci-like math loop from ~120 ms in the interpreter to ~5–6 ms with the JIT (~20x). Code and demos are on GitHub.

AI-written summary · about

  1. 0:00Start
  2. 1:32Important Disclaimers
  3. 2:27What is EL?
  4. 3:28EL example program
  5. 4:02EL instruction set
  6. 4:24Simple C++ interpreter loop
  7. 5:30Eclipse OMR Mission
  8. 6:18Key Goals for Eclipse OMR
  9. 6:54Eclipse OMR Components
  10. 8:44The JitBuilder Library is...
  11. 9:22Using JitBuilder: the basics
  12. 10:28Simple MethodBuilder Example (Simple.cpp)
  13. 11:50How to compile and execute?
  14. 13:07What is an II Value?
  15. 14:00Expression tree examples
  16. 14:54Interpreter Builder: the basics
  17. 35:15Future work
  18. 37:31Wrap up
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.