Difference between revisions of "Compilers"
m |
|||
Line 2: | Line 2: | ||
{{:Compilers_Widget}} | {{:Compilers_Widget}} | ||
− | + | == Major compilers == | |
− | |||
<table style="width:100%;" cellspacing="10"> | <table style="width:100%;" cellspacing="10"> | ||
<tr> | <tr> | ||
Line 29: | Line 28: | ||
</tr> | </tr> | ||
</table> | </table> | ||
+ | |||
+ | == Experimental compilers == | ||
+ | |||
+ | * [[SDC]] | ||
== Which compiler should I use? == | == Which compiler should I use? == |
Revision as of 21:55, 24 November 2012
Major compilers
DMD »Digital Mars D compiler |
GDC »GCC D compiler |
LDC »LLVM D compiler |
Experimental compilers
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 | |
---|---|---|---|
Platforms |
|
|
|
Architectures |
|
|
|
Installation | Automatic | ? | ? |
Backend | DMD | GCC | LLVM |
License | ? | ? | ? |
Inline assembler | Yes, x86 | ? | ? |
SIMD | Partial (?) | Partial (?) | ? |
Linux specific | |||
Object file format | ? | ? | ? |
Mac specific | |||
Object file format | ? | ? | ? |
Windows specific | |||
Object file format | ? | ? | ? |