How can im make my own os in c++?

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
Nuno Silva

How can im make my own os in c++?

Post by Nuno Silva »

:-\ I'm 14 years old and would like to make a os in c++. can you help me?
drizzt

Re:How can im make my own os in c++?

Post by drizzt »

Welcome to the club! :) You can find some docs & tutorials for newbies at http://osdev.neopages.net or if you read the previous topics in this forum you can find tons of infos...
However I think you must have a good knowledge about C++/C and assembly programming before you start an OS project...
2100-OS

Re:How can im make my own os in c++?

Post by 2100-OS »

You should also know a bit of assembler, because C and C++ don't support everything, for example: interrupts... :)
whyme_t

Re:How can im make my own os in c++?

Post by whyme_t »

Firstly, I would recommend you don't use C++. Your going to get a lot of problems which you'll have to solve yourself, you'll get a certain resistance with help / support because it is the norm to use C and asm.

That said, please feel free to check out my contribution to helping people who want to use C++, http://www.invalidsoftware.net/os/. I'm working on an update soon.
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:How can im make my own os in c++?

Post by Pype.Clicker »

Nuno Silva wrote: :-\ I'm 14 years old and would like to make a os in c++. can you help me?
refreshing youth ... i suggest you head yourself to the Operating System Resource Center and start collecting docs/tutorial. Intel's manual is also a must (yes, it's huge, but it worth the download - believe me. What you just need is a lot of coffee :)
jrfritz

Re:How can im make my own os in c++?

Post by jrfritz »

2100-OS wrote: You should also know a bit of assembler, because C and C++ don't support everything, for example: interrupts... :)
C/C++ does support interrupts...its just that you need a asm stub so that the stack and stuff stays correct...
whyme_t

Re:How can im make my own os in c++?

Post by whyme_t »

standard C/C++ doesn't support return from interrupt, iret. So in that sense, it doesn't support interrupts.
jrfritz

Re:How can im make my own os in c++?

Post by jrfritz »

Opps...forgot about that.
Post Reply