Skip to content

marcosantos98/llvm-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

stack vm ir -> llvm ir -> executable

Topics

Resources

Stars

Watchers

Forks