<div dir="ltr"><div dir="ltr">On Wed, Jan 13, 2021 at 4:10 PM Roguish via Digitalmars-d-learn <<a href="mailto:digitalmars-d-learn@puremagic.com">digitalmars-d-learn@puremagic.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wednesday, 13 January 2021 at 14:17:51 UTC, Rikki Cattermole <br>
wrote:<br>
><br>
> Same thing.<br>
<br>
Clear, thanks.<br>
<br>
I'm just discovering today that DMD and LDC are two different <br>
compilers. I got a different impression from the following <br>
webpage, which claims that ldmd2 is a wrapper invoking ldc2.<br>
<br>
<a href="https://stackoverflow.com/questions/35515138/ldc2-vs-ldmd2-whats-the-difference" rel="noreferrer" target="_blank">https://stackoverflow.com/questions/35515138/ldc2-vs-ldmd2-whats-the-difference</a><br>
<br>
Perhaps this is just a peculiarity of how D is distributed on <br>
Debian? I simply installed the 'ldc' package from Debian's <br>
official repos, and that contains both a binary called ldc2 and <br>
one called ldmd2.<br></blockquote><div><br></div><div>There are 3 main compilers which share same frontend,</div><div>DMD (using own backend), LDC2(llvm backend) a GDC(gcc backend)</div><div><br></div><div>ldmd and gdmd are some wrappers to make similar interface for compiling with any of these compilers.</div><div>So generally dmd, gdmd and ldmd2(on some distribution ldmd without 2) should have accept same args</div><div><br></div><div>So calling <dmd or gdmd or ldmd2> -arg1 -arg2 -arg3 should do the same but with different compilers behind the scene.</div><div><br></div></div></div>