mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-07 04:23:41 +00:00
Translate bootstrapping main from C to LLVM IR
This avoids needing a C compiler for every platform.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
source_filename = "runtime/runtime.ll"
|
||||
|
||||
declare void @runtime.initAll()
|
||||
declare void @main.main()
|
||||
|
||||
define i32 @main() {
|
||||
call void @runtime.initAll()
|
||||
call void @main.main()
|
||||
ret i32 0
|
||||
}
|
||||
Reference in New Issue
Block a user