473,434 Members | 1,451 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,434 software developers and data experts.

Write Operating System

Hello,

How can I write an Operating System in C or C++
--
Mateusz Rajca
Nov 17 '05 #1
6 1396
"Matt" <Ma**@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...
Hello,

How can I write an Operating System in C or C++


Start studying. A typical production-strength OS represents somewhere
between 2 and 2000 man-years of labor for version 1, depending on how
sophisticated the OS and how extensive the supported hardware.

What is it that you're wanting to write an operating system for?

-cd
Nov 17 '05 #2
Like Carl says, it's tons of work. You might want to take a look at this:

http://www.ibiblio.org/linux-source/

For a start :o)

Tom

"Matt" <Ma**@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...
Hello,

How can I write an Operating System in C or C++
--
Mateusz Rajca

Nov 17 '05 #3
> How can I write an Operating System in C or C++

This is very vague, and I believe that you will discover that it will take a
looooonnnng time to have something functional.
First start to learn about the chipset used in computer you wish to run on.
You will need to create your own drivers, like keyboard, harddisk/floppy
monitor as a first step. Step 2 learn to create a Floppy/harddisk bootstrap.
You have no other choice to create this in assembler since you have only 256
bytes to start up the rest on a floppy drive. I do not know about the
harddisk.

Next create your file system.

And now you are ready to begin your OS.
You cannot use any MFC or windows functionality in C++, you must create a
complete stripped C++ program to do that. But it is possible. Avoid .NET.
And make a converter that converts the executable to the binary format you
need for you OS.

Good luck. :-)

PS it is possible, but it takes a hell of a time to do it.
Nov 17 '05 #4
> Start studying. A typical production-strength OS represents somewhere
between 2 and 2000 man-years of labor for version 1, depending on how
sophisticated the OS and how extensive the supported hardware.
Also, if you looked up OS writing history, you'd probably find that none of
the guys who went about writing OSes had to ask how to do it. Writing OSes
is not every day programming!

--
Regards,
Nish [VC++ MVP]
"Carl Daniel [VC++ MVP]" <cp*****************************@mvps.org.nospam >
wrote in message news:uk**************@TK2MSFTNGP10.phx.gbl... "Matt" <Ma**@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...
Hello,

How can I write an Operating System in C or C++


Start studying. A typical production-strength OS represents somewhere
between 2 and 2000 man-years of labor for version 1, depending on how
sophisticated the OS and how extensive the supported hardware.

What is it that you're wanting to write an operating system for?

-cd

Nov 17 '05 #5
aa
Modern Operating Systems By Andrew Tanenbaum

"Matt" <Ma**@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...
Hello,

How can I write an Operating System in C or C++
--
Mateusz Rajca

Nov 17 '05 #6
Seems like Bill Gates had to ask Tim Paterson:

http://inventors.about.com/library/weekly/aa033099.htm

:o)

Tom

"Nishant Sivakumar" <ni**@nospam.asianetindia.com> wrote in message
news:e9*************@TK2MSFTNGP15.phx.gbl...
Start studying. A typical production-strength OS represents somewhere
between 2 and 2000 man-years of labor for version 1, depending on how
sophisticated the OS and how extensive the supported hardware.


Also, if you looked up OS writing history, you'd probably find that none
of the guys who went about writing OSes had to ask how to do it. Writing
OSes is not every day programming!

Nov 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Kelvin | last post by:
Hi, group: I am intermediate in C programming, basically I programmed in Unix for digital signal processing... Now I need to write a C++ program to read/write the whole volume of a FAT...
27
by: Kevin A | last post by:
Hi, Is there a way to determine the name and version of the operating system in a portable way? (for Solaris/Linux) Thanks, Kevin
20
by: cylin | last post by:
Dear all, I open a binary file and want to write 0x00040700 to this file. how can I set write buffer? --------------------------------------------------- typedef unsigned char UCHAR; int...
4
by: Tom Van Ginneken | last post by:
Hi, I need to write binary data to a serial port. I am using this function: #include <unistd.h> ssize_t write(int fd, const void *buf, size_t count); I am able to write a alpha-numeric...
2
by: seash | last post by:
H iam developing my windows form application(ide:visual studio.net 2003, visual c#) on windows 2000 professional operating system , but when i run the exe on Xp operating system, the screen ...
0
by: Seth | last post by:
For some reason my service works fine except that it will create the file in my c drive, but will not write to the file. Sorry if this is a duplicate post, i have found some that ask the same...
23
by: asit dhal | last post by:
hello friends, can anyone explain me how to use read() write() function in C. and also how to read a file from disk and show it on the monitor using onlu read(), write() function ??????
3
by: compuv | last post by:
I'm obtaining a weird message when I try to add the capability to write to a csv file into the formmail script that I'm using. Everything is fine initially and the email comes through to me perfectly...
65
by: Hongyu | last post by:
Dear all: I am trying to write to a file with full directory name and file name specified (./outdir/mytestout.txt where . is the current directory) in C programming language and under Unix, but...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.