On 10 November 2013 04:54, Daniel Murphy <[email protected]> wrote:
> "Andrei Alexandrescu" <[email protected]> wrote in message > news:[email protected]... > > On 11/9/13 9:14 AM, nazriel wrote: > >> On Thursday, 18 July 2013 at 01:21:44 UTC, Chad Joan wrote: > >>> I'd like to present my vision for a new D compiler. I call it xdc, a > >>> loose abbreviation for "Cross D Compiler" (if confused, see > >>> ... > >>> Thank you for reading. > >> > >> I think C backend is a good idea. > > > > I think C is not a good back-end language. Other backend generators > > usually have a white paper explaining why... http://www.cminusminus.org/ > > > > Andrei > > > > > > That is true in general, but D actually maps quite well onto C. > > I did some work on creating a C backend a while back, and it worked quite > well. > > However - most of the work is in creating a runtime that will work > correctly > on the target platform. If your desired target is anything that llvm or > gcc > supports, I would recommend using ldc/gdc instead of doing it all from > scratch. > > Especially gdc. Cross-platform support needs all the love it can get. ;-) -- Iain Buclaw *(p < e ? p++ : p) = (c & 0x0f) + '0';
