972
edits
[unchecked revision] | [unchecked revision] |
(Fix D Bare bones: now you should import core.volatile module for volatile) |
m (Bot: Replace deprecated source tag with syntaxhighlight) |
||
Line 78:
Assemble that with:
<
==kernel.main.d==
Line 142:
You then compile that with:
<
==linker.ld==
<
OUTPUT_FORMAT(elf32-i386)
ENTRY (start)
Line 177:
end = .; _end = .; __end = .;
}
</syntaxhighlight>
Now finally you can link all of that with:
<
Your kernel is now kernel.bin, and can now be booted by grub, or run in qemu:
<
[[Category:Bare bones tutorials|D bare bones]]
|