Difference between revisions of "Compilers"

From D Wiki
Jump to: navigation, search
(DMD »)
(Some pragmatic advice for beginners)
Line 30: Line 30:
 
</tr>
 
</tr>
 
</table>
 
</table>
 +
 +
== 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.
  
 
== Comparison ==
 
== Comparison ==

Revision as of 21:38, 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.

Comparison

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