972
edits
[unchecked revision] | [unchecked revision] |
m (→build.zig) |
m (Bot: Replace deprecated source tag with syntaxhighlight) |
||
Line 14:
=== build.zig ===
<
const std = @import("std");
const Builder = @import("std").build.Builder;
Line 94:
run_step.dependOn(&run_cmd.step);
}
</syntaxhighlight>
=== src/main.zig ===
Line 220:
=== src/linker.ld ===
<
ENTRY(_start)
Line 247:
}
}
</syntaxhighlight>
=== src/grub.cfg ===
<
menuentry "Zig Bare Bones" {
multiboot /boot/kernel.elf
}
</syntaxhighlight>
== Build ==
Line 260:
the command below:
<
$ zig build
</syntaxhighlight>
To boot our kernel, simply run this command:
<
$ zig build run
</syntaxhighlight>
[[Category: Bare bones tutorials]] [[Category:Zig]]
|