Using C the entire way?
Using C the entire way?
Is it possible to create an OS only using C? (and inline assembler of course). For instance, the bootloader. It?s hard to find a C compiler that generates 16-bits code(that?s needed in the loader), but if I find one, would it(technically) be possible to write a boot loader in C?
Re:Using C the entire way?
Hi,
http://www.devdaily.com/unix/man/man1/bcc.1.shtml
Cheers,
Brendan
Yes. Relatively large numbers of OS's are written in C (with inline assembler). For the boot loader, there are C compilers capable of generating 16 bit real mode code (some are free/GPL). For example:Gros wrote: Is it possible to create an OS only using C? (and inline assembler of course). For instance, the bootloader. It?s hard to find a C compiler that generates 16-bits code(that?s needed in the loader), but if I find one, would it(technically) be possible to write a boot loader in C?
http://www.devdaily.com/unix/man/man1/bcc.1.shtml
Cheers,
Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.