Kalang (dibaca kaleng), adalah sebuah bahasa pemrograman
Features:
- Function
- Just In Time Execution
dependency: LLVM-14 how to build: 0. clone this repository, and change current directory to kalang
mkdir build
cd build
sudo cmake ..
sudo make
./kalang [path]
(just./kalang
to interact with REPL)
This compiler will emit LLVM IR in dump.ll
use clang dump.ll
to compile into executable
you can see the generated assembly with objdump or gdb
Make sure to have main function if you want to compile it to executable with clang
REPL:
File: