Difference between revisions of "Compilers"

From D Wiki
Jump to: navigation, search
m (border)
m (Add some weight)
Line 4: Line 4:
 
<table style="width:100%;" cellspacing="10">
 
<table style="width:100%;" cellspacing="10">
 
<tr>
 
<tr>
<td style="width:33%; vertical-align: top; padding: 10px 10px; background: #f9f9f9; border: 1px solid #ccc;">
+
<td style="width:33%; vertical-align: top; padding: 10px 10px; background: #f9f9f9; border: 1px solid #ccc; border-top: 1px solid #eee; border-bottom: 2px solid #999;">
 
= [[DMD|DMD &raquo;]] =
 
= [[DMD|DMD &raquo;]] =
 
'''Digital Mars D compiler''' <br/>The formal D compiler.
 
'''Digital Mars D compiler''' <br/>The formal D compiler.
Line 10: Line 10:
 
</td>
 
</td>
  
<td style="width:33%; vertical-align: top; padding: 10px 10px; background: #f9f9f9; border: 1px solid #ccc;">
+
<td style="width:33%; vertical-align: top; padding: 10px 10px; background: #f9f9f9; border: 1px solid #ccc; border-top: 1px solid #eee; border-bottom: 2px solid #999;">
  
 
= [[GDC|GDC &raquo;]] =
 
= [[GDC|GDC &raquo;]] =
Line 18: Line 18:
 
</td>
 
</td>
  
<td style="width:33%; vertical-align: top; padding: 10px 10px; background: #f9f9f9; border: 1px solid #ccc;">
+
<td style="width:33%; vertical-align: top; padding: 10px 10px; background: #f9f9f9; border: 1px solid #ccc; border-top: 1px solid #eee; border-bottom: 2px solid #999;">
 
= [[LDC|LDC &raquo;]] =
 
= [[LDC|LDC &raquo;]] =
 
'''LLVM D compiler'''<br/>
 
'''LLVM D compiler'''<br/>

Revision as of 21:47, 23 November 2012


There are currently 3 actively developed major D compilers:

DMD »

Digital Mars D compiler
The formal D compiler.

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 ? ? ?