xdc: A hypothetical D cross-compiler and AST manipulation tool.

Iain Buclaw ibuclaw at ubuntu.com
Sun Nov 10 01:30:18 PST 2013


On 10 November 2013 04:54, Daniel Murphy <yebblies at nospamgmail.com> wrote:

> "Andrei Alexandrescu" <SeeWebsiteForEmail at erdani.org> wrote in message
> news:l5madp$1p24$1 at digitalmars.com...
> > 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';
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20131110/300ad625/attachment.html>


More information about the Digitalmars-d mailing list