On 22 June 2012 07:35, Walter Bright <[email protected]> wrote: > On 6/21/2012 11:07 PM, Mehrdad wrote: >> >> On Thursday, 21 June 2012 at 19:44:40 UTC, Walter Bright wrote: >>> >>> On 6/21/2012 9:39 AM, Alex wrote: >>>> >>>> is it possible to use D to write code to work without OS? >>>> like i do it with gcc. >>> >>> >>> Sure. But you'll need to thoroughly understand how the D runtime startup >>> code >>> works, so you can adjust as necessary. >> >> >> Good luck getting the C-runtime part of the "D runtime" right.. > > > It's not that hard. But there's a lot of detail to learn & take care of. >
Wouldn't it be useful if the compiler had diagnostics for all implicit allocations it makes (ie: closures, array literals)? Similar to that of the -vtls switch. These such things you may want to avoid in a freestanding environment (no link to C runtime). -- Iain Buclaw *(p < e ? p++ : p) = (c & 0x0f) + '0';
