Difference between revisions of "Compilers"
(→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. | ||
− | |||
<div style="text-align: right;">[[DMD|DMD Portal »]]</div> | <div style="text-align: right;">[[DMD|DMD Portal »]]</div> | ||
</td> | </td> | ||
Line 16: | Line 15: | ||
'''GCC D compiler'''<br/> | '''GCC D compiler'''<br/> | ||
Fast and open source. | Fast and open source. | ||
− | |||
<div style="text-align: right;">[[GDC|GDC Portal »]]</div> | <div style="text-align: right;">[[GDC|GDC Portal »]]</div> | ||
</td> | </td> | ||
Line 24: | Line 22: | ||
'''LLVM D compiler'''<br/> | '''LLVM D compiler'''<br/> | ||
Fast and open source. | Fast and open source. | ||
− | |||
<div style="text-align: right;">[[LDC|LDC Portal »]]</div> | <div style="text-align: right;">[[LDC|LDC Portal »]]</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 |
GDC »GCC D compiler |
LDC »LLVM D compiler |
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 | ? | ? | ? |