13 lines
202 B
Zig
13 lines
202 B
Zig
export executable "hello";
|
|
|
|
#link("c")
|
|
extern {
|
|
fn puts(s: *const u8) -> i32;
|
|
fn exit(code: i32) -> unreachable;
|
|
}
|
|
|
|
export fn _start() -> unreachable {
|
|
puts("Hello, world!");
|
|
exit(0);
|
|
}
|