<story><title>How to run a program without an operating system?</title><url>https://stackoverflow.com/questions/22054578/how-to-run-a-program-without-an-operating-system/32483545#32483545</url></story><parent_chain></parent_chain><comment><author>emilfihlman</author><text>&amp;gt;Technically, a program that runs without an OS, is an OS.&lt;p&gt;It is not. A program that runs without an OS just doesn&amp;#x27;t need the OS provided services but instead manages everything itself.&lt;p&gt;A perfectly valid program might be:&lt;p&gt;&lt;pre&gt;&lt;code&gt;    #include &amp;lt;avr&amp;#x2F;io.h&amp;gt;
    
    int main(void)
    {
        DDRB=255;
        while(1)
        {
            PORTB++;
        }
    }&lt;/code&gt;&lt;/pre&gt;</text></comment>
<story><title>How to run a program without an operating system?</title><url>https://stackoverflow.com/questions/22054578/how-to-run-a-program-without-an-operating-system/32483545#32483545</url></story><parent_chain></parent_chain><comment><author>CoolGuySteve</author><text>If you ever programmed a ROM for a Gameboy or something this should look familiar.  The BIOS of those old systems just jumps right into a certain address and all you have to do is make sure your linker is setup properly to put crt0.s there.&lt;p&gt;The Gameboy Advance in particular is pretty fun and simple, I recommend it.</text></comment>