C backend for D

IGotD- nise at nise.com
Fri Mar 6 19:43:49 UTC 2020


On Friday, 6 March 2020 at 19:24:13 UTC, 12345swordy wrote:
> On Thursday, 5 March 2020 at 20:51:40 UTC, Dibyendu Majumdar 
> wrote:
>> Has there ever been an attempt to create a C backend for D?
>
> None, there is simply no good reason for dmd to have a c 
> backend. Once the backend has been open sourced, effort has 
> been made to port it to d via dbetterC.

With LLVM, intermediate languages or "transpilers" has become 
less usual simply because they are less and less necessary. Also 
debugging becomes more difficult as you have an intermediate 
language that will fill up the debugging information rather than 
the actual language that you are using.

Nim, is the language that stands out that uses C as the main 
backend. It has benefits as well as drawbacks.

With LDC and GDC, a C backend is more or less obsolete and 
pointless.


More information about the Digitalmars-d mailing list