I'm the kind of person who likes a challenge, so I've been playing around with the idea of writing my own OS. Nothing fancy (yet), just something small like DOS.
From what I've read on some sites about writing an OS, they say I'd have to write my own C runtime library. This is where it gets a little confusing... Do I have to write the C runtime lib (and maybe a C compiler) in assembly, or can I do it in C on something like Linux, but compile it so it will run on my own OS?
The sites also say writing a bootstrap program is a royal pain, so I'd just use GRUB instead.
Drivers are another scary thought. Do I need to write my own drivers for everything, or can I somehow use existing drivers?
Any other advice about writing an OS would be greatly appreciated.
From what I've read on some sites about writing an OS, they say I'd have to write my own C runtime library. This is where it gets a little confusing... Do I have to write the C runtime lib (and maybe a C compiler) in assembly, or can I do it in C on something like Linux, but compile it so it will run on my own OS?
The sites also say writing a bootstrap program is a royal pain, so I'd just use GRUB instead.
Drivers are another scary thought. Do I need to write my own drivers for everything, or can I somehow use existing drivers?
Any other advice about writing an OS would be greatly appreciated.