Compile to non-OS binary

Amorphorious Amorphorious at gmail.com
Sun Dec 24 03:19:47 UTC 2017


Premature send(tabs?!?! ;/)

void main()
{

    version(BIOS)
    {
        import iBIOS;
        BIOSOut("Hello World");
    } else
    {
        writeln("Hello World");
    }
}


When compiled appropriately will create a bootable executable 
that displays the string. Else will create an OS specific 
executable that prints the string.

(for demo purposes only)

This should be seamless as I will be switching functionality 
regularly.




More information about the Digitalmars-d-learn mailing list