09f68c7c33
now you can depend on libc in zig language instead of it being hardcoded in the compiler.
11 lines
165 B
Zig
11 lines
165 B
Zig
#link("c")
|
|
extern {
|
|
fn puts(s: *mut u8) -> i32;
|
|
fn exit(code: i32) -> unreachable;
|
|
}
|
|
|
|
fn _start() -> unreachable {
|
|
puts("Hello, world!");
|
|
exit(0);
|
|
}
|