operating system in c++

make my own operating system in c++

Page 1 of 1

6 Replies - 3176 Views - Last Post: 08 August 2009 - 02:18 AM Rate Topic: -----

#1 smart_ritu  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 06-August 09

operating system in c++

Post icon  Posted 06 August 2009 - 12:20 PM

want to know about stepwise description for
how to make my own opeating system in C++
Is This A Good Question/Topic? 0
  • +

Replies To: operating system in c++

#2 Louisda16th  Icon User is offline

  • dream.in.assembly.code
  • member icon

Reputation: 15
  • View blog
  • Posts: 1,967
  • Joined: 03-August 06

Re: operating system in c++

Posted 06 August 2009 - 12:31 PM

I don't know anything about making OSes but I believe that the description on doing so can go on for pages...
There is a thread that discusses OSes. Hope this helps:
http://www.dreaminco...wtopic20520.htm
Was This Post Helpful? 0
  • +
  • -

#3 Elcric  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 101
  • View blog
  • Posts: 453
  • Joined: 02-May 09

Re: operating system in c++

Posted 06 August 2009 - 12:53 PM

Hello, :D

This might give you some ideas.

http://www.planet-so...p...18&lngWId=3

Good luck and keep us posted on your progress.
Was This Post Helpful? 0
  • +
  • -

#4 NickDMax  Icon User is offline

  • Can grep dead trees!
  • member icon

Reputation: 2247
  • View blog
  • Posts: 9,237
  • Joined: 18-February 07

Re: operating system in c++

Posted 06 August 2009 - 01:15 PM

You will ultimately need assembly as well as C/C++ (well if you are not starting form a pre-made kernel). Much to my chagrin :) I discovered that library functions like printf, malloc etc tend to use OS dependent mechanisms.

So step 1 for writing a OS in C++ is to get the C++ libraries ported over to your non-existent OS. :) But you can find the C libraries written in assembly out there and use them a jumping off point.
Was This Post Helpful? 0
  • +
  • -

#5 RudiVisser  Icon User is online

  • .. does not guess solutions
  • member icon

Reputation: 1001
  • View blog
  • Posts: 3,555
  • Joined: 05-June 09

Re: operating system in c++

Posted 06 August 2009 - 01:39 PM

When I wrote my kernel and std C/C++ library implementation I didn't use any straight ASM.

It was GCC configured not to link in *any* standard libraries, no headers is bliss. You just completely make your own stuff and it's absolutely brilliant, but no, you don't need assembly strictly.

EDIT: At least not a complete understanding of starting from scratch, inline assembly will have to be used (especially for interrupts etc) but the majority will be C/C++.

This post has been edited by MageUK: 06 August 2009 - 01:50 PM

Was This Post Helpful? 0
  • +
  • -

#6 NickDMax  Icon User is offline

  • Can grep dead trees!
  • member icon

Reputation: 2247
  • View blog
  • Posts: 9,237
  • Joined: 18-February 07

Re: operating system in c++

Posted 06 August 2009 - 01:42 PM

I suppose that you are correct on a technical point... I find that many of the lowlevel operations are easier to do in assembly -- but I suppose that there is no reason why you can't use c++ as long you don't use any of the libraries.
Was This Post Helpful? 0
  • +
  • -

#7 jeff666  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 193
  • Joined: 30-December 08

Re: operating system in c++

Posted 08 August 2009 - 02:18 AM

Simply posting this question shows that you should make pizzas instead.
(you don't know what is an Os, you don't know C++, you don't know Google...)

This post has been edited by jeff666: 08 August 2009 - 02:18 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1