Difference between revisions of "Compilers"

From D Wiki
Jump to: navigation, search
(Comparison)
Line 7: Line 7:
 
= [[DMD|DMD »]] =
 
= [[DMD|DMD »]] =
 
'''Digital Mars D compiler''' <br/>The reference implementation of D.
 
'''Digital Mars D compiler''' <br/>The reference implementation of D.
* [https://github.com/D-Programming-Language/dmd DMD on GitHub]
 
 
<div style="text-align: right;">[[DMD|DMD Portal &raquo;]]</div>
 
<div style="text-align: right;">[[DMD|DMD Portal &raquo;]]</div>
 
</td>
 
</td>
Line 16: Line 15:
 
'''GCC D compiler'''<br/>
 
'''GCC D compiler'''<br/>
 
Fast and open source.
 
Fast and open source.
* [https://github.com/D-Programming-GDC/GDC GDC on GitHub]
 
 
<div style="text-align: right;">[[GDC|GDC Portal &raquo;]]</div>
 
<div style="text-align: right;">[[GDC|GDC Portal &raquo;]]</div>
 
</td>
 
</td>
Line 24: Line 22:
 
'''LLVM D compiler'''<br/>
 
'''LLVM D compiler'''<br/>
 
Fast and open source.
 
Fast and open source.
* [https://github.com/ldc-developers/ldc LDC on GitHub]
 
 
<div style="text-align: right;">[[LDC|LDC Portal &raquo;]]</div>
 
<div style="text-align: right;">[[LDC|LDC Portal &raquo;]]</div>
 
</td>
 
</td>

Revision as of 21:42, 23 November 2012


There are currently 3 actively developed major D compilers:

DMD »

Digital Mars D compiler
The reference implementation of D.

GDC »

GCC D compiler
Fast and open source.

LDC »

LLVM D compiler
Fast and open source.

Which compiler should I use?

If you're a beginner DMD is the recommended choice, as it is the implementation closest to the D Language Specification. Otherwise it depends on what you need, what platforms you intend to develop for, and your personal preferences. GDC and LDC both generate substantially faster binaries than DMD.

Comparison

DMD GDC LDC
Installation Automatic ? ?
Platforms Linux / Mac / FreeBSD / Win Linux / Mac / FreeBSD / Win Linux / Mac / FreeBSD / Win
Architectures i386, amd64 i386, amd64 i386, amd64
License ? ? ?
Features ? ? ?