add the basics of llvm codegen

This commit is contained in:
Luna 2019-09-20 23:40:21 -03:00
parent 250631ff41
commit 6c3d20bbbb
5 changed files with 121 additions and 4 deletions

View file

@ -5,7 +5,7 @@ fn add(a: i32, b: i32) i32 {
}
// type is void by default
fn main() {
std.fmt.print("piss\n");
std.fmt.print("2 + 2 = %d\n", add(1, 2));
}
//fn main() {
// print("piss\n");
// // print("2 + 2 = %d\n", add(1, 2));
//}