4 ms·
Interesting, all sources of MS-DOS 1.25 is just 12K lines of code, including comments. Today, this seems like a pretty small project, and most commercial apps
by theamk 8y ago
Interesting, all sources of MS-DOS 1.25 is just 12K lines of code, including comments.
Today, this seems like a pretty small project, and most commercial apps are significantly bigger.
- ndnxhs 8y agoMy beta web app probably has more source code than that.. That has me thinking though. I have always wanted to try OS dev but all the stuff I have read says it will take years to get a system that can print hello world but surely it can't take that long to write 12k lines.
- stormbrew 8y agoAn "OS" that just boots and prints hello world would be on the order of tens to hundreds of lines depending how fancy you want to be and how much you want to lean on legacy bios support still being a thing. There are a lot of tutorials out there that'll walk you through quite a bit more than that in a weekend.
- ChrisSD 8y agoThere are many tutorials for creating a Raspberry Pi OS[0]. Running in a VM like qemu is the easiest and cheapest way to start (setting up a bootable SDcard is more involved). A "something that boots" kernel is very small although obviously it doesn't do much. By the time you get to "hello world" the program will have grown but it's still relatively small. [0]: https://jsandler18.github.io/ https://jsandler18.github.io/
- anticensor 8y agoThis is the sanitised version, with inappropriate comments et al. removed.
- danmg 8y agoMost of the functionality is done by the BIOS. It's basically a shell that wraps around the interfaces provided by the BIOS.