Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 675 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 675 Bytes

jitcalc

A simple integer calculator using JIT compilation.

By means of the DynASM runtime assembler of the LuaJIT project, the expressions will be translated into x86-64 instructions. So they, the evaluation of the given expressions can be much faster than pure interpreters.

Features

  1. Only integer operations are supported;
  2. add, substrate, multiply and divide;
  3. logic and comparison;
  4. function call;
  5. ternary operation;

Build

Simply run make and you should have the executable file jitcalc. Run make check for some expressions.

License

jitcalc is licensed under the MIT License.