Skip to content

paxbun/jitdemo

Repository files navigation

JIT demo

Result on Intel i5-8250U, release mode

A simple example showing how JIT works.

Supported platforms

  • Windows 11 x64
  • Linux x64 (Not tested)

Project structure

Miscellaneous directories:

  • cmake: Contains CMake scripts.

Explore the codes in the following order:

  • expr: Contains expression tree type definitions and parsing logic.
  • jit: Contains JIT logic.
  • shell: Contains a simple shell implementation using the features in the above 2 modules. main() is in shell/main.cxx. (incomplete)

TODOs

  • Add unit tests
  • Add detailed benchmark results
  • Add optimizations
  • Add support for funcion declaration, function renaming, ...
>>> DECLARE f(x, y) = x * y + 2.4
>>> SHOW f
f(x, y) = x * y + 2.4
>>> DELETE f
>>> LIST

About

A simple example showing how JIT works.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published