0 thetman Posted December 18, 2004 Share Posted December 18, 2004 the only one i think i can anser is hte one that deals with dos IIRC, windows 2000, xp, 2003 and of course longhorn dont use dos as an underlying system Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585120924 Share on other sites More sharing options...
0 golazo Posted March 25, 2005 Share Posted March 25, 2005 oops i thought it was the windows 2000 source code that was leaked. sorry :p Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585669325 Share on other sites More sharing options...
0 Suren Posted March 25, 2005 Share Posted March 25, 2005 "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 Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585669345 Share on other sites More sharing options...
0 Elagizy Posted March 25, 2005 Author Share Posted March 25, 2005 WOW.. it seems cool from the screen shots ( similar to win9x ), any way i am going to check all these thread in the summer holiday to prepare my self to start this big project ... i may use this open source a lot :) Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585669425 Share on other sites More sharing options...
0 Debugger Posted March 25, 2005 Share Posted March 25, 2005 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 Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585669516 Share on other sites More sharing options...
0 sparkyewu Posted April 23, 2005 Share Posted April 23, 2005 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 ;) Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585816262 Share on other sites More sharing options...
0 John Veteran Posted April 23, 2005 Veteran Share Posted April 23, 2005 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 ;) Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585816379 Share on other sites More sharing options...
0 azcodemonkey Posted April 23, 2005 Share Posted April 23, 2005 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] Wow, for such a smart guy(Linus), that sure is an ignorant thing to say. Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585816478 Share on other sites More sharing options...
0 REM2000 Posted April 23, 2005 Share Posted April 23, 2005 Sorry haven't got time to finish reading the post. If you want to know some real OS basics and design check out this bloke, ur'll learn shed loads http://channel9.msdn.com/ShowPost.aspx?PostID=55222 Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585816693 Share on other sites More sharing options...
0 MrA Posted April 23, 2005 Share Posted April 23, 2005 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. Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585817508 Share on other sites More sharing options...
0 Glowstick Posted April 23, 2005 Share Posted April 23, 2005 Thanks for bumping the thread. The first three pages are ****ing comedy! Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585817579 Share on other sites More sharing options...
0 Andareed Posted April 23, 2005 Share Posted April 23, 2005 Not sure if it was posted, but another os to look at is ReactOS. It is an api level clone (i.e., windows kernel mode apps/drivers should be source compatible) of the nt kernel. Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585818023 Share on other sites More sharing options...
0 chavo Posted April 23, 2005 Share Posted April 23, 2005 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. Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585818134 Share on other sites More sharing options...
0 azcodemonkey Posted April 23, 2005 Share Posted April 23, 2005 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. Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585818292 Share on other sites More sharing options...
0 Andrew Lyle Global Moderator Posted April 23, 2005 Global Moderator Share Posted April 23, 2005 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. Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585818309 Share on other sites More sharing options...
0 Elagizy Posted April 23, 2005 Author Share Posted April 23, 2005 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: Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585818773 Share on other sites More sharing options...
0 Soham Posted April 23, 2005 Share Posted April 23, 2005 you have to learn Asembly Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585818789 Share on other sites More sharing options...
0 Vorenus Posted April 24, 2005 Share Posted April 24, 2005 you have to learn Asembly 585818789[/snapback] Not necessarily - Unix was created using C. So was Linux for that matter. Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585819807 Share on other sites More sharing options...
0 Winston Posted April 24, 2005 Share Posted April 24, 2005 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? Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585820040 Share on other sites More sharing options...
0 John Veteran Posted April 24, 2005 Veteran Share Posted April 24, 2005 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. Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585820982 Share on other sites More sharing options...
0 +Random Stranger Subscriber¹ Posted April 24, 2005 Subscriber¹ Share Posted April 24, 2005 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. Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585821075 Share on other sites More sharing options...
0 Winston Posted April 24, 2005 Share Posted April 24, 2005 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. Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585821443 Share on other sites More sharing options...
0 _kane81 Posted April 26, 2005 Share Posted April 26, 2005 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. Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585829639 Share on other sites More sharing options...
0 goatsniffer Posted April 26, 2005 Share Posted April 26, 2005 WinXP has a command prompt, not DOS. Just because it looks like DOS doesn't mean it is DOS. Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585829659 Share on other sites More sharing options...
0 Andrew Lyle Global Moderator Posted April 26, 2005 Global Moderator Share Posted April 26, 2005 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. Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585829670 Share on other sites More sharing options...
0 Brandon Live Veteran Posted April 26, 2005 Veteran Share Posted April 26, 2005 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). Link to comment https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585829751 Share on other sites More sharing options...
Question
thetman
the only one i think i can anser is hte one that deals with dos
IIRC, windows 2000, xp, 2003 and of course longhorn dont use dos as an underlying system
Link to comment
https://www.neowin.net/forum/topic/258824-how-to-build-an-operaing-system/page/5/#findComment-585120924Share on other sites
128 answers to this question
Recommended Posts