Click here to Skip to main content
15,894,180 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
What do I need to create an operating system in windows and/or linux?
I know c/c++ and little asm.

Sorry for my bad English :)
Posted
Updated 7-Sep-16 22:05pm
v2

Hi,

I am working on my own OS, so I hope I can provide you with some helpful information! For writing the kernel, I use gcc running on Linux. The assembler I use is NASM, also running on Linux.

(Also, I assume your writing this for x86?)

These two sites are very valuable places for info on OS design:
http://www.osdever.net/[^]
http://wiki.osdev.org/Main_Page[^]

Another interesting link is this: http://www.gnu.org/software/grub/manual/multiboot/html_node/Example-OS-code.html[^]

The Multiboot standard is a simple way of writing a kernel, and then using a Multiboot bootloader (In my case, GRUB) to boot the kernel. A Multiboot kernel sets the CPU to 32bit and enables the A20 line (this allows access to upto a maximum of 4GB of RAM). Using a Multiboot bootloader also means you don't have to mess around writing a bootloader yourself :)

And of course: The Intel Manuals are a good place to start!
 
Share this answer
 
Comments
EddyBeGood 9-Oct-10 4:53am    
ahoy mate. that is what i need to know. than you
EddyBeGood 9-Oct-10 4:56am    
*thank you ;)
LloydA111 9-Oct-10 7:46am    
Your welcome, also, this link is quite good too: http://wiki.osdev.org/Bare_bones
Depends on u,
it can be done with only the simple usage of Windows debug (debug.exe)!!!! :omg: ,
...
however a long development require tools
1. compiler [c or c++] (gcc,intel c++,vc 1.52)
2. linker
3. preferably an assembler(however the actual need of this can be limited to the first 512 bytes,which u can code also with debug.exe )

and for the rest u need datasheet and programmers manual from ur cpu designer.
like intel ,motorola,amd.
 
Share this answer
 
You need the following things:

- Assembler
- Compiler
- Documents for the hardware you want to support
- Sense of humour for when the documents turn out to be complete fiction

Cheers,

Ash

PS: You're probably mad...
 
Share this answer
 
Comments
EddyBeGood 8-Oct-10 16:03pm    
probably :)
I'm not sure why you would want to spend your time developing an operating system when there are so many available already, but nevertheless, these articles might help you get started:

Develop your own Operating System in C# or VB.NET[^]
Building your own operating system[^]

BTW: Windows and Linux ARE operating systems, so you don't do operating systems "in Windows and/or Linux" - you do a replacement for the two...
 
Share this answer
 
v2
Comments
Smithers-Jones 8-Oct-10 8:20am    
Can't see, why somebody would vote this answer a 1, so I countervoted 5.
Johnny J. 8-Oct-10 8:22am    
Thanks a lot - I wondered the same...
Sauro Viti 8-Oct-10 8:28am    
I think that just only one 5 doesn't balance a vote of 1: it's a good answer then I give you my 5 too!
Johnny J. 8-Oct-10 8:33am    
Thanks to you too, Sauro
Have a look to this site[^]: it's aminimalistic open-source operating system, realized using C/C++ and assembler...
 
Share this answer
 
Comments
EddyBeGood 8-Oct-10 16:05pm    
thanks :) \m/
EddyBeGood 8-Oct-10 16:08pm    
do you maybe know how to compile it in Visual C++. i know how to create a bootloader in asm but i want kernel in c/c++. in gcc i have an error if i have more than one c/cpp file
EddyBeGood 8-Oct-10 16:11pm    
i want to create an OS but from start
Sauro Viti 8-Oct-10 16:47pm    
From the site that I give you download the source files zip; inside it you also find the instructions on how to build it... if I remember right :-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900