Difference between revisions of "Compilers"
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 »]] = | = [[DMD|DMD »]] = | ||
'''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 »]] = | = [[GDC|GDC »]] = | ||
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 »]] = | = [[LDC|LDC »]] = | ||
'''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 |
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 | ? | ? | ? |