473,799 Members | 3,084 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Write Operating System

Hello,

How can I write an Operating System in C or C++
--
Mateusz Rajca
Nov 17 '05 #1
6 1415
"Matt" <Ma**@discussio ns.microsoft.co m> wrote in message
news:1A******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:1A******** *************** ***********@mic rosoft.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.nos pam>
wrote in message news:uk******** ******@TK2MSFTN GP10.phx.gbl... "Matt" <Ma**@discussio ns.microsoft.co m> wrote in message
news:1A******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:1A******** *************** ***********@mic rosoft.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.as ianetindia.com> wrote in message
news:e9******** *****@TK2MSFTNG P15.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
710
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 formatted smartmedia card...I can view the raw data in WinHex...now what I want is, in generic C codes to read all the data I see in WinHex...
27
6799
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
5606
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 iFD=open(szFileName,O_CREAT|O_BINARY|O_TRUNC|O_WRONLY,S_IREAD|S_IWRITE); UCHAR buffer; //??????????? write(iFD,buffer,5); ---------------------------------------------------
4
11167
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 character to the port using this: write (filedescriptor,"a",1);
2
1602
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 (windows form) of my application gets truncated at the end of the screen i have to make changes to the forms height and width to make it fully visible on the screen iam using infragistics library for some controls on the form, is it the culprit i...
0
1668
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 question - but noone seems to answer. Do i need to do anything specific to write to a text file from a windows service, much appreciated.
23
3007
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
1691
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 from the simple HTML form I've designed. However, when I add the path to the CSV directory into the appropriate section in the php script being called, I get the following when I run the script: Parse error: parse error, unexpected ';' in...
65
5107
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 got errors of Failed to open file ./outdir/mytestout.txt. Below is the code: #include <stdio.h>
0
9538
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10249
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10219
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10025
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5461
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5584
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4138
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.