Skip to content

bragaigor/EL

 
 

Repository files navigation

Welcome to EL!

EL is an educational language runtime and programming language! We’re using it to show people how to use Eclipse OMR to build their own language runtime with a Just in Time (JIT) Compiler!

Getting started

1. Requirements

To get started with EL you will need the following:

  • git
  • build-essential
  • cmake (Minimum version 3.2.0)

2. Clone the repository and get the submodules

git clone --recursive https://github.com/bragaigor/EL.git

3. Build EL

cd EL \
&& mkdir build \
&& cd build \
&& cmake .. \
&& make

If make complains about python version use:

cmake -DPYTHON_EXECUTABLE=$(which python3) ..

4. Run a program

In the build folder:

4.1. Compile

bytecodecompiler/elc ../examples/test.el

4.2.1 Run with C Compiler

runtime/el -it 0 test.le

4.2.2 Run with JitBuilder Compiler

runtime/el -it 1 test.le

4.2.3 Run with InterpreterBuidler Compiler

runtime/el -it 2 test.le

To see real performance differences, do the above steps with programs that start with perf_

About

Simple runtime for teaching VMs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 86.3%
  • CMake 12.8%
  • ANTLR 0.9%