Re: Compile to non-OS binary

2017-12-24 Thread Amorphorious via Digitalmars-d-learn
On Sunday, 24 December 2017 at 03:24:36 UTC, Adam D. Ruppe wrote: On Sunday, 24 December 2017 at 03:15:58 UTC, Amorphorious wrote: In fact, it would be very helpful to have switches that disable the various "features" of D that I will not use rather than having to do any self compilation.

Re: Compile to non-OS binary

2017-12-23 Thread Adam D. Ruppe via Digitalmars-d-learn
On Sunday, 24 December 2017 at 03:15:58 UTC, Amorphorious wrote: In fact, it would be very helpful to have switches that disable the various "features" of D that I will not use rather than having to do any self compilation. The way I did it was create a custom runtime only including the

Re: Compile to non-OS binary

2017-12-23 Thread Amorphorious via Digitalmars-d-learn
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

Compile to non-OS binary

2017-12-23 Thread Amorphorious via Digitalmars-d-learn
I would like to compile D for the different supported architectures only without and OS, C lib, D lib, or GC code. For example, as a boot loader or even bios binary. In fact, it would be very helpful to have switches that disable the various "features" of D that I will not use rather than