How hard would it be to create a new backend in D?

Walter Bright newshound2 at digitalmars.com
Sat Aug 6 07:39:36 UTC 2022


On 8/5/2022 1:37 PM, rempas wrote:
> I was wondering how easy it would be to create a new backend in D? From what I 
> know all of the tree DMD, LDC and GDC are using the same frontend which is the 
> one from DMD. So I would suppose that there is a way to do that and that 
> probably DMD has evolved over the years to make its frontend more portable. 
> However, how strain-forward is it? Is it legit to do it or will it require 
> "hacking" (if you understand what I mean). So it's not about working hard but if 
> the work makes sense or if I'll constantly find obstacles that no one would be 
> able to help me with.

The dmd backend is already in D :-)

But since it's all Boost Licensed, anyone can use 0..100% of it for their own 
backend project. No asking is required.

Have fun!


More information about the Digitalmars-d mailing list