Self-hosting D compiler -- Coming Real Soon Now(tm)

Sergey Korshunoff via Digitalmars-d digitalmars-d at puremagic.com
Fri Sep 12 02:50:20 PDT 2014


2014-09-11 0:12 GMT+04:00, ketmar via Digitalmars-d
<digitalmars-d at puremagic.com>:
> write D -> C++ translator and add translated versions to repo too. no,
> really! this C++ code need not to be maintenable, so we can use C++
> subset as "assembler language". i.e. use D frontend to make all
> analysis, instantiate templates and so on, then just emit ugly,
> unreadable, but working subset of C++. why C++? to support exceptions,
> which can be hard to do properly with C.

LDC and LLVM allow to comvert a D source code to C source (and may be
to C++). What wrong with this solution?


More information about the Digitalmars-d mailing list