jitcalc icon indicating copy to clipboard operation
jitcalc copied to clipboard

A simple integer calculator using JIT compilation

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.