Skip to content

azhai/toy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Toy Lang

Go port of LLVM's Kaleidoscope Tutorial using the tinygo llvm bindings. doc

Compile and Run

# Ubuntu 20.04 Golang 16.0 
LLVM_SOURCE="deb https://mirrors.tuna.tsinghua.edu.cn/llvm-apt/focal/ llvm-toolchain-focal-14 main"
sudo echo "$LLVM_SOURCE" > /etc/apt/sources.list.d/llvm.list
sudo apt update
sudo apt install llvm-14-dev

go build -ldflags "-s -w"
./toy fib.k && ./fib

Other Resources

About

A compiler based on llvm and go binding

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published