sysprog21 / jitcalc

A simple integer calculator using JIT compilation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A simple integer calculator using JIT compilation

License:MIT License


Languages

Language:C 95.3%Language:Makefile 4.7%