Generate llvm-ir from a basic stack virtual machine using the llvm toolchain and compile it to the host machine target.
opname | description | operand |
---|---|---|
pushi | push integer | number |
pushs | push string literal | "urmom" |
puts | print string literal | none |
exit | exit program | none |
; | end operation | none |
pushs "Hello world!\n";
puts;
pushi 0;
exit;
Requires llvm
, clang
, make
make run