• 0

How to build an operaing system ?


Question

Recommended Posts

  • 0

"ReactOS is an Open Source effort to develop a quality operating system that is compatible with Microsoft Windows® applications and drivers."

"The kernel has come a long way and is quite stable and many APIs are complete enough for higher level work to be done. Substantial work has been done on many libraries. Initial networking code is there, but unusable for the moment. A basic implementation of the Graphics Device Interface (GDI) and a VGA graphics driver is paving the way for a GUI. The amount of developers is steadly increasing."

its realy nice os, and you can use losts of windows software on it

they even have a live cd version

  • 0

1- Mostly x86 Assembly and pure C, C++ was not really a good choice at that time

2-Run it under an emulator, Vitual PC and Vmware works fine, use bochs if you need a free one

3- You absolutely need know to x86 Assembly to make the Master Boot Record and some parts of the kernel. Assembly is the lowest level language you can program with if you dont want to learn all the x86 OPcodes. They are numbers that means something to the processor like making an addition etc...

4- Windows 95/98/me all relied on a dos subsystem, in Me it was simply hidden, you can even get a patch to return to DOS from Me. They just had no choice or else no one would be using windows at that time, because customers needed perfect compatibility wth DOS programs to use old softwares that was popular at that time. Window NT/2000/XP was made with stability in mind, not compatiblity, they are able to run DOS programs but in a CONSOLE which is not DOS but only program which tries to emulates. That's why a lot people complained about certain DOS programs not functionning correctly or at all with XP, XP was the first microsoft attempt to bring an NT OS to "normal" users. WinXP is just Windows 2000 with a better user interface and better compatibility with games, just look at the build numbers of win2000 & XP, 2000 is windows NT5 and XP is 5.1 . Longhorn, the next windows, will be windows version 6.0 which should be a significant upgrade from XP.

So... You want to make an OS, learn some assembly, pure C or C++ ( which is not as bad for that than it was before it was standardized ) and have lots of patience. Start by reading how to make MBR and some x86 specific stuff like gate A20, gdt, ldt , interrupts and last but not least, protected mode. If you don't know C/C++ start learning it before thinking of doing anything. And don't even think of doing a user interface before a lot of things is implemented. You actually have to reinvent the wheel, you have to access hardware like the video card directly to write something on the screen.

If anything i said is not 100% correct, just tell me in a correct way.

Thank you

  • 0
I can tell you that Windows is written in C and C++, with small amounts of assembly in places. Linux, mostly C++ from what I understand. DOS, who knows (or cares) ;)

Linux is written in C, Linus torvolds the creator has said a million times that C++ is slow because it has extra overhead. Just so you know ;)

  • 0
Linux is written in C, Linus torvolds the creator has said a million times that C++ is slow because it has extra overhead. Just so you know ;)

585816262[/snapback]

Got it (Y)

But you didn't need to revive the thread just to tell me that. You could have sent a PM or something ;)

  • 0
Wow, for such a smart guy(Linus), that sure is an ignorant thing to say.

585816478[/snapback]

But Linus is right. For an OS, you want to spend as little time in kernel space as possible and that means you don't want to deal with the overhead of C++ (exceptions, RTTI). Also, C++ uses a lot of stack space. You only have a limited stack (8k or 4k) in the kernel. Another feature of C++ that gets in the way is name mangleing(sp?). When you have to mix languages, dealing with name mangleing is one more thing you have to worry about.

  • 0
Thanks for bumping the thread. The first three pages are ****ing comedy!

585817579[/snapback]

Yes, it's extremely funny. Until you realize that these people aren't trying to be funny.

Now it starts to lose it's charm.

It starts to become disturbing. You realize that these people actually exist and that they actually think, speak and react in this manner. It's frightening to think that these people believe that they are being clever.

This does not bode well for the future of mankind. I don't think there's any legal way to stop them from spreading there malformed genes into future generations. You can't just go around shooting the idiots and dumping them into a big hole. Although I have considered it in the past. I don't think we'll get that far with that method.

We must educate the poor losers. We must somehow convince them that they should not reproduce.

Well this is far too deep of an issue for the pages at Neowin.

  • 0
But Linus is right.  For an OS, you want to spend as little time in kernel space as possible and that means you don't want to deal with the overhead of C++ (exceptions, RTTI).  Also, C++ uses a lot of stack space.  You only have a limited stack (8k or 4k) in the kernel.  Another feature of C++ that gets in the way is name mangleing(sp?).  When you have to mix languages, dealing with name mangleing is one more thing you have to worry about.

585817508[/snapback]

That's assuming you use RTTI, and program in an OO way. C++ doesn't force you to do either. Concerning mangling, extern "C" fixes that. Linus implies that you have to use all the features of C++, if he truly said what was posted. And if that is the case, that is why I think it was ignorant. I'd be surprised if Linus didn't have more to say about programming style instead of the language. You can program in an OO way in C, too.

  • 0

if your gonna make an OS.. make a good one for starters LOL

or even an OS, at your expierence level, i'd be surprized.

but lemme give you some advice...

an OS takes years and years to profect.. and you need to know ins and outs of computers

an OS is millions of lines of code. and... if you can get passed 10,000, i'll personally shake your hand.

im not trying to put you down, but look at how many employees work for microsoft. i bet more then 60% of them work in creating / improving, or in some sorta way, have their hand in the creation of an OS.

  • 0

Thanx a lot for people who posted links to learn from it, and no thanks for people who is trying to depress me. Just tell me what you know or stop posting.

Do i said that i want to make OS like windows :blink: , i just want to make an OS for my self, happy now !

*Thread redownloaded for summer holiday*

and please can some one help me in this thread :

https://www.neowin.net/forum/index.php?showtopic=311820

I think I will find my solution from Neowin.net after 10 useless posts :rolleyes:

  • 0
Not necessarily - Unix was created using C. So was Linux for that matter.

585819807[/snapback]

Correct me if i'm wrong, but isn't Assembly necessary at times, to interface with hardware? Like wouldn't Assembly be required to write some of the fundamental aspects which then a higher-level language can use off, i.e. C, C++.

Btw why the hell isn't this thread locked already?

  • 0
Correct me if i'm wrong, but isn't Assembly necessary at times, to interface with hardware? Like wouldn't Assembly be required to write some of the fundamental aspects which then a higher-level language can use off, i.e. C, C++.

Btw why the hell isn't this thread locked already?

585820040[/snapback]

The thread remains open because it is a valuable learning resource. It also demonstrates the complexity and sheer size of an operating system.

And assembly is necessary, at least for the kernel and some hardware interface. Unix was not created entirely with C code.

  • 0

first pages of this threads are jokes. but i guess he is learning. but i agree with something posted in here before: you should just do the shell for windows which will do all you want. now that would be useful and realistic. and i think it is the more important part of you final idea. and if you get your ai interface think to work nicely - that you can think of writing underluying ssytem. not before.

  • 0
The thread remains open because it is a valuable learning resource. It also demonstrates the complexity and sheer size of an operating system.

And assembly is necessary, at least for the kernel and some hardware interface. Unix was not created entirely with C code.

585820982[/snapback]

In that case perhaps you should strip away the non-informative bits of the thread if possible.

  • 0
Btw why the hell isn't this thread locked already?

.....

John:

The thread remains open because it is a valuable learning resource. It also demonstrates the complexity and sheer size of an operating system.

.....

In that case perhaps you should strip away the non-informative bits of the thread if possible.

585821443[/snapback]

:yes: :yes: :yes:

I tend to agree with Winston, this thread should be closed. maybe create a new sticky thread on building an OS?

I think we pick on Elagizy way too much in this thread to allow people to bring it to life again.

  • 0
WinXP has a command prompt, not DOS.

Just because it looks like DOS doesn't mean it is DOS.

585829659[/snapback]

correct.

earlier windows used DOS.. and i believe since windows NT, they changed to Command Prompt.

  • 0

The only DOS in Windows XP is the DOS virtual machine used for running legacy apps. This is not unlike what happens when you load Virtual PC. The DOS virtual machine thinks that it is DOS and thinks that it had direct access to the system, but really it's running in a "sandbox." When it makes a call to the hardware, Windows XP's compatability layer says "Oh, the DOS VM wants to access the hardware directly. That's not allowed any more, so I'll just give it the answer it wants and only pretend that it actually accessed the hardware."

Any non-blank autoexec files you find on your system are either:

A) Leftovers from a previous DOS/Windows 9x installation, or

B) Used to set environment variables (like the PATH statements posted before) so that programs running in the VM can find things they need.

There really isn't much more to it than that.

The Windows NT kernel bears no relation to DOS in any conceivable way. It most closely follows the design of OpenVMS (whose creators developed NT for Microsoft). In many ways it is comparable to the Mach kernel that Apple's OS X runs on top of. NT relies more heavily on threading, which makes it more scalable in multi-processor situations. However, both NT and Mach are built to be simple, versatile kernels on which you can run pretty much on any platform and support pretty much any user-space system (just like Apple runs FreeBSD on top of Mach, and Microsoft runs various "subsystems" on top of NT - including Win32, POSIX, OS/2, etc).

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Dopamine 3.0.6 by Razvan Serea Dopamine is an awesome free audio player which tries to make organizing and listening to music as simple and pretty as possible. Dopamine has been designed for Windows 7, Windows 8.x and Windows 10 and plays mp3, ogg vorbis, flac, wma and m4a/aac music formats quite well. The best part? It's created by long-time Neowin member, Raphaël Godart. If you’re looking for a music player to handle a large music collection, you should definitely give Dopamine a try. Dopamine 3.0.6 changelog: Fixed Manually edited album covers are overwritten on the next collection refresh Fixed AppImage package not working on modern GNU/Linux distributions Deleting song from playlist sometimes fails Playback controls only work when clicking on upper half of the buttons It's unclear that files must be tagged with an external ReplayGain scanner (for example rsgain) before normalization can take effect. Change to Artist or Album tags is not reflected in the song list view nor in the Now Playing information ReplayGain issues Smart playlist filters ignore text containing accents or other special characters Some MP3 files trigger an "MPEG header not found" error due to a too-narrow initial MPEG header scan range Changed Updated the Vietnamese translation Download: Dopamine 3.0.6 | 122.0 MB (Open Source) Links: Home Page | Forum Discussion | Screenshot | Other OSes Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • BleachBit 6.0.1 Beta by Razvan Serea When your computer is getting full, BleachBit quickly frees disk space. When your information is only your business, BleachBit guards your privacy. With BleachBit you can free cache, delete cookies, clear Internet history, shred temporary files, delete logs, and discard junk you didn't know was there. Designed for Linux and Windows systems, it wipes clean thousands of applications including Firefox, Microsoft Edge, Google Chrome, Opera, Safari, and more. Beyond simply deleting files, BleachBit includes advanced features such as shredding files to prevent recovery, wiping free disk space to hide traces of files deleted by other applications, and vacuuming Firefox to make it faster. Better than free, BleachBit is open source. BleachBit has many useful features: Delete your private files so completely that "even God can't read them" according to South Carolina Representative Trey Gowdy. Simple operation: read the descriptions, check the boxes you want, click preview, and click delete. Multi-platform: Linux and Windows Free of charge and no money trail Free to share, learn, and modify (open source) No adware, spyware, malware, browser toolbars, or "value-added software" Translated to 64 languages besides American English Shred files to hide their contents and prevent data recovery Shred any file (such as a spreadsheet on your desktop) Overwrite free disk space to hide previously deleted files Portable app for Windows: run without installation Command line interface for scripting and automation CleanerML allows anyone to write a new cleaner using XML Automatically import and update winapp2.ini cleaner files (a separate download) giving Windows users access to 2500+ additional cleaners Frequent software updates with new features Going beyond standard deletion of files, BleachBit has several advanced cleaners: Clear the memory and swap on Linux Delete broken shortcuts on Linux Delete the Firefox URL history without deleting the whole file—with optional shredding Delete Linux localizations: delete languages you don't use. More powerful than localepurge and available on more Linux distributions. Clean APT for Debian, Ubuntu, Kubuntu, Xubuntu, and Linux Mint Find widely-scattered junk such as Thumbs.db and .DS_Store files. Execute yum clean for CentOS, Fedora, and Red Hat to remove cached package data Delete Windows registry keys—often where MRU (most recently used) lists are stored Delete the OpenOffice.org recent documents list without deleting the whole Common.xcu file Overwrite free disk space to hide previously files Vacuum Firefox, Google Chrome, Liferea, Thunderbird, and Yum databases: shrink files without removing data to save space and improve speed Surgically remove private information from .ini and JSON configuration files and SQLite3 databases without deleting the whole file Overwrite data in SQLite3 before deleting it to prevent recovery (optional) BleachBit 6.0.1 Beta release notes: BleachBit 6.0.1 beta is now available for testing. This maintenance-focused release includes bug fixes, updated translations, and a range of safe enhancements. This release fixes a Windows security issue that could allow arbitrary file deletion during privileged cleaning (reported by Zeze with TeamT5). It also adds new cleaners (including a DNS cache cleaner, Claude Code, and Visual Studio Code forks), support for multiple Chrome and Edge profiles, new deep scan options for developer directories like node_modules and venv, and safer, faster file shredding. All Platforms Added cleaners for Claude Code, DNS cache, and many Visual Studio Code forks. Added support for multiple Chrome and Edge profiles. Chrome can now clean downloaded AI models. Deep Scan can optionally remove venv, __pycache__, node_modules, and .angular directories. Deep Scan is faster by skipping directories on the keep list. File shredding is safer, faster, and leaves fewer recoverable traces. Improved handling of cookies, symlinks, Unicode filenames, external processes, and configuration files. Improved Expert Mode warnings and long warning dialogs. Fixed crashes related to cleaner detection, invalid Unicode, and malformed cleaner data. Clipboard is now cleared automatically after shredding files via paste operations. Linux Added AppImage support. Added cleaners for Visual Studio Code, Codeium, Librewolf (.deb), Transmission (Flatpak), and Profanity. Improved Linux trash detection, including Snap-installed applications and mounted drives. Fixed Wayland root CLI issues and several Snap-related problems. Improved package dependencies, AppStream metadata, and desktop file handling. Fixed startup crashes when Python Requests is unavailable. Windows Fixed a security vulnerability that could allow arbitrary file deletion when cleaning with elevated privileges. Added %WindowsSystem% variable support. Improved clipboard clearing using native Windows APIs. Improved installer experience on unsupported Windows versions. Reduced installer size and improved application robustness. Fixed Unicode handling, filename anonymization, Git revision reporting, and splash screen stability. [full release notes] Download: BleachBit 6.0 | Portable | ~20.0 MB (Open Source) View: BleachBit Home page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • DriversCloud 12.1.6 by Razvan Serea With DriversCloud (formerly My-Config.com), you can explore your computer easily, safely and free. The application quickly scans your PC and identifies the hardware and software components. DriversCloud then establishes a list of the different drivers compatible with your OS and hardware. Download the drivers needed for the proper functioning of your computer. To detect your drivers, DriversCloud also displays a detailed summary of your hardware and software configuration, analyzes your BSOD, monitors in real-time your PC voltages and temperatures and lets you share your configuration online. Once the hardware components have been detected, you will be able to obtain with just a few clicks the latest drivers corresponding to the identified hardware. You can record your configuration on the site for free, and can get the corresponding URL to post the configuration to technical forums, e-mail and social networks. You can also download the detection result (the configuration) as a PDF file. To protect the user's privacy and data confidentiality, a 4-level confidentiality system was created that filters the XML marks and gives control to the user. The default level can be modified in the preferences. Using the maximum level will prevent the user from publishing his configuration and generating a corresponding PDF file. In non-connected mode, each XML configuration is stored on the server for one day (for practical reasons). However, you are given the opportunity to manually delete it. Created in 2004, and continually improved, My-Config.com has established itself on the web as a free service to PC users running Windows and Linux operating systems. The service is designed to work with the most common Internet browsers (Edge, Firefox, Chrome, Safari). Download: DriversCloud 64-bit | 20.0 MB (Freeware) Download: DriversCloud 32-bit | 18.9 MB Link: DriversCloud Home Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • One Month Later
      AndreaB earned a badge
      One Month Later
    • One Month Later
      agatameier earned a badge
      One Month Later
    • Week One Done
      agatameier earned a badge
      Week One Done
    • Week One Done
      ssd21345 earned a badge
      Week One Done
    • Contributor
      MarkHughes4096 went up a rank
      Contributor
  • Popular Contributors

    1. 1
      +primortal
      516
    2. 2
      +Edouard
      193
    3. 3
      PsYcHoKiLLa
      147
    4. 4
      ATLien_0
      96
    5. 5
      Steven P.
      77
  • Tell a friend

    Love Neowin? Tell a friend!