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) |
||
(One intermediate revision by the same user not shown) | |||
Line 13:
==start.asm==
<
global start
Line 74:
resb STACKSIZE
</syntaxhighlight>
Assemble that with:
<
==kernel.main.d==
<
module kernel.main;
import core.volatile;
Line 138:
}
}
</syntaxhighlight>
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]]
|