I'm wondering if it's possible to run a computer program without an operating system. Is there any way that this can be done?
closed as not constructive by Renan, Randolph West, Luke, Mokubai, 8088 Aug 9 '12 at 2:45
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.
Without an operating system, You cannot run a program that was written to be run in an operating system. Most programs are of this sort.
You could write a program that runs without an operating system but this would be a very hard task, mainly because the operating system provides drivers for all the hardware. Without the OS, your program would have to drive the specific hardware directly. Not all hardware makers release details of how to do this (e.g. nVidia) but only provide drivers for specific operating systems.
You'd also have the problem of how to get the computer to load and run your program. With most desktop computers you'd have to place the program where the BIOS would expect to find an OS loader.
It is likely you'd have to write the program in a low level language - assembler or perhaps something like C without any standard libraries that are OS dependent.
You can write programs for things like the Arduino without any OS on the Arduino. there are development kits that allow you to write code in relatively high level languages, the development kits usually provide the equivalent of drivers for the specific hardware.
You can redefine "Operating System" in a way that invalidates all the above. I am assuming you mean software comparable to the Windows or Linux operating systems.