Thread: Running programs outside of an OS.

  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    38

    Running programs outside of an OS.

    How hard would it be to write a program that runs independent of an operating system? Is there a special compiler? Would it need a bootloader like an OS needs? Thanks.

  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,739
    Extremely hard! Consider how many different pieces of hardware exist and you'll get the picture.

    You have to deal with BIOS, which i'm not very accustomed with. I believe that in boot time, the BIOS load a special file of the OS and untill booting again, the OS takes control. ( That is not actually true, because any OS is just an interface to the BIOS ). I don't think that there is any way to handle BIOS after an OS boots.
    Devoted my life to programming...

  3. #3
    Banned ಠ_ಠ's Avatar
    Join Date
    Mar 2009
    Posts
    687
    You will need MS-DOS and a computer it's designed to run on, current computers have an architecture that prohibits anything other than the kernel from accessing the hardware.

    so, no, you cannot wipe the files of the other people using your computer that way
    ╔╗╔══╦╗
    ║║║╔╗║║
    ║╚╣╚╝║╚╗
    ╚═╩══╩═╝

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Its difficult but there's loads of sites to help you. Try google OsDev for a start.

    You need to get the right toolset (GCC is probably worth looking at to begin with), be comfortable with C and a little assembler. Then be prepared to do lots of reading. Soon you can start to write boot-loaders, memory managers, shells and disk drivers. Having an old test machine in place also helps, if you dont have one then look up bochs.

    At one point in time lots of people were writing little boot-loaders on this site...those were the days!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Running multiple programs
    By Kespoosh in forum C++ Programming
    Replies: 2
    Last Post: 03-17-2003, 04:53 PM
  2. POSIX/DOS programs?
    By nickname_changed in forum C++ Programming
    Replies: 1
    Last Post: 02-28-2003, 05:42 AM
  3. running programs as "hidden" or in the "background"
    By Leeman_s in forum C++ Programming
    Replies: 4
    Last Post: 12-18-2002, 03:47 AM
  4. running old programs on new machine
    By task in forum Tech Board
    Replies: 1
    Last Post: 11-13-2002, 09:26 PM
  5. how to compile & run c programs in unix?
    By Unregistere in forum C Programming
    Replies: 2
    Last Post: 10-09-2002, 10:53 PM

Tags for this Thread