Results 1 to 18 of 18

Thread: Create an Operating System

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Create an Operating System

    Hello, first of all i think i posted in the wrong section, i am not sure..

    Second i am just curious, i know at my skill level i can't accomplish the task, how would you go about creating an OS for e.g. Windows & Mac?

    What language is it written in? How do you write it? Where do you write it? Since i would find it strange to create an OS from a program on Windows etc..lol

    Would i have the recreate DOS?.. how would it work?

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Create an Operating System

    I think General Developer would be more apt - thread moved.

    You can use various languages, but not ones which require other things to be pre-installed and/or running (so not VB, or a .Net language that uses the framework, all of which require Windows and several other things!)

    That is just one part of the process, you also need to deal with boot loaders etc, which is how the hardware gets your system started when the PC boots.

    Whether or not you re-create would be up to you, you could re-create Windows instead (which has worked without DOS since Windows 95 I think).

  3. #3
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: Create an Operating System

    Not in VB. Maybe in C or C++ some Assembly
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  4. #4
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: Create an Operating System

    The boot loader would require Assembly as it has to fit in a specific number of bytes. You would then need to port over the standard C and C++ libraries over to the new OS. You also need to write a kernel which would most likely be in C or C++.

    It's quite challenging. I thought about attempting a very simple one myself but I really don't feel like learning assembly. It would be fun but you'd need at least assembly and C.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Re: Create an Operating System

    Thankyou for the replies, i was just really curious, maybe after i am done learning and after i master C / C++ and Assembly then i can try to attempt creating an OS.

    Well actually does Mac use the C / C++ libraries etc..? i though C / C++ was Windows. So what would of mac done then? created it from scratch?

  6. #6
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: Create an Operating System

    C and C++ are not for any specific system. Windows dlls are written in it. Link and Unix are witten in the same. I think MAc OS is also.
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Re: Create an Operating System

    Quote Originally Posted by GaryMazzone
    C and C++ are not for any specific system. Windows dlls are written in it. Link and Unix are witten in the same. I think MAc OS is also.
    Thanks, i will actually look into it more, since i don't fully understand how it works.

  8. #8
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Create an Operating System

    Quote Originally Posted by noahssite
    ... i don't fully understand how it works.
    Very few do so you are not alone.
    I know for a fact that Windows 3.1 (released in 1992) was written by team of about 12 very educated in computer csience and math people.
    I imagine that current versions of Windows/Mac required team of at least 100 architects/developers.

  9. #9
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Create an Operating System

    If you are interested there are some postings on PlanetSourceCode where people have played with creating their own "languages". Here are a couple of links that may be useful for research.... I knew of about 4 that existed on PSC, but they have been removed and I found a couple of them elsewhere on the net.

    Viking Compiler: now exists only Delphi section of PSC, was also in VB
    http://www.planet-source-code.com/vb...=1120&lngWId=7

    Visia Compiler: was on PSC but removed -- made some money with it
    http://basic.mindteq.com/Details/VisiaCompiler.html

    Libry Compiler: was on PSC but can be found on A1VB
    http://www.a1vbcode.com/app-3497.asp
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  10. #10

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Re: Create an Operating System

    Well i was originally and still am curious about creating a new language, it could be for Windows i guess, like not Java, VB, etc... but my own. I am guessing the compiler would have to be written in C / Assembly.

    Thanks for the links anyway i will check them out.

  11. #11
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Create an Operating System

    If you check out the Projects forum you will find others attempts at creating a scripting language which could also provide some insight of what you will be up against. Its a very tremendous task and would require more then one person developing it (in order to complete it within some decent time frame).
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  12. #12
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Create an Operating System

    Quote Originally Posted by si_the_geek
    ...

    Whether or not you re-create would be up to you, you could re-create Windows instead (which has worked without DOS since Windows 95 I think).
    Just to clarify, they used real mode DOS till Windows 98. Till then DOS was the main operating system and Windows was loaded on top of DOS from where it took over.


    Pradeep
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  13. #13
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: Create an Operating System

    Quote Originally Posted by Pradeep1210
    Just to clarify, they used real mode DOS till Windows 98. Till then DOS was the main operating system and Windows was loaded on top of DOS from where it took over.


    Pradeep
    Erm, no. DOS was used up to Windows ME. Windows 98 and 98SE were still DOS based.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  14. #14
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: Create an Operating System

    Quote Originally Posted by kasracer
    Erm, no. DOS was used up to Windows ME. Windows 98 and 98SE were still DOS based.
    Not entirely. Windows 98 was the first MS OS that could run without DOS being installed since they'd replaced most of the dos programs with equivalent windows programs, however they still shipped Win98 with DOS so the end users would have 100% backward compatibility and in case their system was old enough that it couldn't recognize the windows boot loader.

    Windows ME has the ability to run in DOS real-time mode, but everything there is a crappy DOS-emulator because of the win98 enhanced shell running on a poorly configured NT kernel. MS scrapped the winME approach when they started working on winXP. They also fixed up the dos emulator for XP, which handles 99% of the DOS programs in existence.
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  15. #15

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Re: Create an Operating System

    Can anyone supply good links to start leaning Assembly? e.g. Tutorials etc...

  16. #16
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Create an Operating System

    Quote Originally Posted by noahssite
    Can anyone supply good links to start leaning Assembly? e.g. Tutorials etc...
    Maybe take a peek at this forum's Assembly section?
    http://www.vbforums.com/announcement.php?f=17&a=4
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  17. #17
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: Create an Operating System

    Quote Originally Posted by JuggaloBrotha
    Not entirely.
    Crap, you're right... I hate you
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  18. #18
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: Create an Operating System

    from 1975 - 1986 i worked on two large mainframe os's. one was totally written in assembler, the other(unix's older brother) was written in PL/1 mostly. just maintaining and diagnosing problems was awe inspiring.

    i also had the privilege of working on a new os for a communications front end processor.

    a new os is not for the faint of heart.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width