Skip to content

Latest commit

 

History

History
30 lines (14 loc) · 543 Bytes

README.md

File metadata and controls

30 lines (14 loc) · 543 Bytes

lua2llvm

In this toy project, I intend to write a compiler for Lua.

I want to see whether static analysis of code for dynamic languages can be utilized to

generate fast binaries.

Goals:

  • performance

Explicit non-goals:

  • Lua feature parity

  • fast compile times

Currently this project contains my lua "reference implementation" interpreter.

It can be invoked with cargo run <main.lua>

The project now also contains a simple compiler from Lua to LLVM IR.

file.lua can be compiled and executed by running main.sh.