Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 519 Bytes

readme.md

File metadata and controls

30 lines (22 loc) · 519 Bytes

llvm test

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

OPs:

opname description operand
pushi push integer number
pushs push string literal "urmom"
puts print string literal none
exit exit program none
; end operation none

Sample:

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

Run:

Requires llvm, clang, make

make run