18 lines
330 B
Plaintext
18 lines
330 B
Plaintext
const std = #import("std");
|
|
comptime {
|
|
_ = _start;
|
|
}
|
|
|
|
const _start = fn () noreturn export cc(.naked) {
|
|
#asm({
|
|
xor ebp, ebp;
|
|
and rsp, 0xfffffffffffffff0;
|
|
call {start};
|
|
});
|
|
}
|
|
|
|
const start = fn() noreturn export {
|
|
const result = #import("main").main();
|
|
std.os.exit(exit_code = result);
|
|
}
|