OS languages

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
James

OS languages

Post 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.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:OS languages

Post 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 ;)
James

Re:OS languages

Post by James »

Thankyou.. Its possible for ASM and C together right?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:OS languages

Post 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.
James

Re:OS languages

Post by James »

Yep! Thanks.. For now Im working on the C part of my OS!
Post Reply