Home

Awesome

llvm test

Generate llvm-ir from a basic stack virtual machine using the llvm toolchain and compile it to the host machine target.

OPs:

opnamedescriptionoperand
pushipush integernumber
pushspush string literal"urmom"
putsprint string literalnone
exitexit programnone
;end operationnone

Sample:

pushs "Hello world!\n";
puts;
pushi 0;
exit;

Run:

Requires llvm, clang, make

make run