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.
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
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
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