18 Replies - 5757 Views - Last Post: 13 January 2008 - 07:35 PM
#1
which lang to write an OS?
Posted 21 November 2007 - 03:20 AM
just wonder I'm in the need of some help and would like some one to assist me
i want to write an Operating system that is like linux which lang is the best to program
in and why?
Replies To: which lang to write an OS?
#2
Re: which lang to write an OS?
Posted 21 November 2007 - 03:42 AM
As for which is best and why...well, C is a pretty high-level language. However, it lets you stay close to the hardware and do a lot of low-level stuff with it (even to the point of using inline assembly language within your code). And really getting at the machine itself is something that an OS is going to need to be able to do to work effectively.
What kind of a level are you at with programming? If we have a better idea where you're at in your programming career, we might be better able to point you in the right direction with this.
#3
Re: which lang to write an OS?
Posted 21 November 2007 - 06:38 AM
#4
Re: which lang to write an OS?
Posted 21 November 2007 - 06:40 AM
Programmist, on 21 Nov, 2007 - 07:38 AM, said:
http://www.lagmonste.../windowsrg.html
#5
Re: which lang to write an OS?
Posted 21 November 2007 - 01:00 PM
jjhaag, on 21 Nov, 2007 - 04:42 AM, said:
Writing a kernel with the capabilities of Linux 0.01 through 0.10 is usually a requirement for computer science degrees... I know it is for mine.. and it's a one semester class, so it's less "a hell of a lot of man hours" and more "you really need to know what you're doing".. I've seen some implementations that are like.. 500 lines of C that don't do much more than boot and display "hello" to the screen.
#6
Re: which lang to write an OS?
Posted 24 November 2007 - 05:40 AM
first u need to know a lot about programing , here i m not talking about kiddy programing , rather a serious one , and bout that java script and php , its simple , those languages are themselves dependent how can u make something out of them and hope they are independent....
skills u probably require would be assembly and c++ ( c++ is optional , u could use any one in comparison) , assembly will only do the boot stuff , and then the rest is up to the other language...
mind it , not everyone can create a OS.....
want any help , just contact me...
#7
Re: which lang to write an OS?
Posted 26 November 2007 - 11:29 AM
#8
Re: which lang to write an OS?
Posted 27 November 2007 - 10:18 AM
no2pencil, on 21 Nov, 2007 - 07:10 PM, said:
Programmist, on 21 Nov, 2007 - 07:38 AM, said:
http://www.lagmonste.../windowsrg.html
ROFL!!! Nice one!
#9
Re: which lang to write an OS?
Posted 28 November 2007 - 01:39 PM
Most OS's linux and Windows are generally written in C.
I would think that the reason for this is speed.
Also running code at such a low level requires the libraries you
use to be re-entrant. That is why you don't really see
device drivers written in c++. Of course there are wrappers to use
c++ at the kernel level e.g; Numega has one but I don't know
how good/ feature rich it is.
There are alot of details that need to be handled like
* Process abstraction
* Memory management
* Interrupt handling
* Scheduling
and many many more issues.
Also there is a project called singularity, which is an OS written in C#
http://channel9.msdn...px?PostID=68302
#10
Re: which lang to write an OS?
Posted 28 November 2007 - 01:44 PM
skaoth, on 28 Nov, 2007 - 02:39 PM, said:
zombie: while you are creating your OS, be sure to keep an open eye as to the difference between a boot-loader, & an operating system. Maybe take one step at a time, understanding what a boot-loader is, how it works, why it does what it does, & then move on to the OS.
You'll also need to know how (& maybe why) to switch from protected to unprotected memory mode, 16 to 32 bit, ect ect. Basically all of the steps in the boot processes. Getting the computer ready to accept, & processes commands.
This post has been edited by no2pencil: 28 November 2007 - 01:45 PM
#11
Re: which lang to write an OS?
Posted 30 November 2007 - 11:15 AM
This post has been edited by Programmist: 30 November 2007 - 11:15 AM
#12
Re: which lang to write an OS?
Posted 11 December 2007 - 07:55 AM
#13
Re: which lang to write an OS?
Posted 11 December 2007 - 08:58 AM
#14
Re: which lang to write an OS?
Posted 11 December 2007 - 09:38 AM
like, how would i command it to load the exe kernel?
#15
Re: which lang to write an OS?
Posted 11 December 2007 - 10:38 AM
As found here : http://www.dreaminco...p;hl=bootloader & supplied by Martyr2.
|
|

New Topic/Question
Reply


MultiQuote






|