-nofloat flag => should we destroy it?

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Fri May 9 23:57:58 PDT 2014


"Adam Sakareassen via Digitalmars-d"  wrote in message 
news:mailman.510.1399697057.2907.digitalmars-d at puremagic.com...

> No float is probably important for OS kernel and device driver developers.
>
> The kernel of an operating system will usually not save the floating point 
> registers during a context switch (to the kernel).  For this reason its 
> important the compiler can guarantee never to use floating point numbers 
> or the registers.
>
> Removing such a flag may prevent the compiler being used to write things 
> like Linux device drivers.  I know this is usually done in C, but there 
> might be an OS in D one day.

DMD will likely never be used for that anyway, and I seriously 
doubt -nofloat works correctly these days. 



More information about the Digitalmars-d mailing list