Page 1 of 1

OS languages

Posted: Fri Aug 11, 2006 9:19 am
by James
I am new to making my own OS. I have a good understanding on most languages, which is useful!

But, I need to know which languages I should use, so I can get everything prepared etc, for when I start to design it.

Re:OS languages

Posted: Fri Aug 11, 2006 10:34 am
by Pype.Clicker
we typically recommend C as the language of choice. C++ can do the trick too if you're seasonned enough and feel ready to fight a bit with the toolchain.
Freepascal is quite common too, yet i see more people asking how to do it than people explaining how they did it (with the exception of the Gliding kernel, of course).

And, of course, nothing should prevent you from doing a 100% ASM OS ... nothing except maybe the complexity of the code you'll write.

See the FAQ for details.

Oh, and btw, for those who haven't notice, we have a nice-sunshiny-summer-thread about a language for OS dev, so if you're willing to defend PERL/Python/Forth/JAVA/LISP/Scheme/D/Logo/C#/.NET/PHP/Javascript/HTML or whatever for OS deving, be smart and just post there, right ?

oh, except for PHP, Javascript and HTML where you're welcome to post in the "general/off-topic/everything else" board instead ;)

Re:OS languages

Posted: Fri Aug 11, 2006 10:38 am
by James
Thankyou.. Its possible for ASM and C together right?

Re:OS languages

Posted: Fri Aug 11, 2006 10:40 am
by Pype.Clicker
that's one of the most common combination, yes. You just have to know the basics of C calling conventions (e.g. how to push arguments from ASM when calling C / how to access arguments pushed by C on the stack) and how to export/import symbols in ASM, and voil?.

That should even be in-depth detailed in the examples coming with your assembler.

Re:OS languages

Posted: Fri Aug 11, 2006 1:53 pm
by James
Yep! Thanks.. For now Im working on the C part of my OS!