Difference between revisions of "Compilers"
(→Package and/or binary availability, by platform and compiler) |
m (Update LDC information) |
||
Line 62: | Line 62: | ||
*OS X | *OS X | ||
*FreeBSD | *FreeBSD | ||
+ | *OpenSolaris | ||
*iOS (experimental) | *iOS (experimental) | ||
|--- | |--- | ||
Line 102: | Line 103: | ||
* ppc64 | * ppc64 | ||
* ppc64el | * ppc64el | ||
− | * | + | * mips64 |
Partial or bare-metal only support: | Partial or bare-metal only support: | ||
* armel | * armel | ||
* armhf | * armhf | ||
+ | * mips | ||
+ | * s390x | ||
|--- | |--- | ||
|'''Distribution''' | |'''Distribution''' | ||
Line 226: | Line 229: | ||
*[http://gdcproject.org/downloads Manual download] (5.2.0 w/ dmd frontend 2.066.1) | *[http://gdcproject.org/downloads Manual download] (5.2.0 w/ dmd frontend 2.066.1) | ||
| | | | ||
− | *[https://github.com/ldc-developers/ldc/releases Manual download] (0.15.1, 0.15.2-beta2, 0.16.0- | + | *[https://github.com/ldc-developers/ldc/releases Manual download] (0.15.1, 0.15.2-beta2, 0.16.0-beta1) |
|--- | |--- | ||
!OS X | !OS X | ||
Line 236: | Line 239: | ||
| | | | ||
*[http://brew.sh Homebrew] (0.15.2-beta2, 0.16.0-alpha4) | *[http://brew.sh Homebrew] (0.15.2-beta2, 0.16.0-alpha4) | ||
− | *[https://github.com/ldc-developers/ldc/releases Manual download] (0.15.1, 0.15.2-beta2, 0.16.0- | + | *[https://github.com/ldc-developers/ldc/releases Manual download] (0.15.1, 0.15.2-beta2, 0.16.0-beta1) |
|--- | |--- | ||
!Linux (generic) | !Linux (generic) | ||
Line 244: | Line 247: | ||
*[http://gdcproject.org/downloads Manual download] (5.2.0 w/ dmd frontend 2.066.1) | *[http://gdcproject.org/downloads Manual download] (5.2.0 w/ dmd frontend 2.066.1) | ||
| | | | ||
− | *[https://github.com/ldc-developers/ldc/releases Manual download] (0.15.1, 0.15.2-beta2, 0.16.0- | + | *[https://github.com/ldc-developers/ldc/releases Manual download] (0.15.1, 0.15.2-beta2, 0.16.0-beta1) |
|--- | |--- | ||
!Cross-platform | !Cross-platform |
Revision as of 10:56, 26 September 2015
DMD »Digital Mars D compiler |
GDC »GCC D compiler |
LDC »LLVM D compiler |
Also see: 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 |
|
Complete (runtime / standard library) support:
Partial or bare-metal only support (packages for gdc in debian):
|
Complete (runtime / standard library) support:
Near-complete support:
Partial or bare-metal only support:
|
Distribution |
|
|
|
Backend | DMD (DMC fork) | GCC | LLVM |
License | Frontend: GPL 1 or later / Artistic License
Backend: custom |
GPL 3 or later | LDC-specific code: 3-clause BSD |
Inline assembler |
|
|
|
SIMD | Partial (?) | Partial (?) | Partial (?) |
Phobos as a shared library |
|
| |
Building D code as shared library |
|
| |
Dynamic loading of D shared libraries |
|
| |
Linux specific | |||
Object file format | ELF | ELF | ELF |
Mac specific | |||
Object file format | Mach-O | Mach-O | Mach-O |
Windows specific | |||
Object file format | OMF (32) / COFF (64) | COFF | COFF |
Package and/or binary availability, by platform and compiler
Version number is given in brackets. Many of the manual download links have 10s of versions available, only the most recent few are listed here.
Some unofficial repositories and downloads are listed here, but of course many more do exist. With a little searching, you may be able to find something more up to date for your chosen OS.
Very old compilers are (mostly) omitted, as they are unlikely to be of interest to users.
Platform |
Compiler | ||
---|---|---|---|
DMD | GDC | LDC | |
Windows |
|
|
|
OS X |
|
| |
Linux (generic) |
|
|
|
Cross-platform |
|
||
Distribution-specific packages | |||
Debian |
|
| |
Ubuntu |
|
||
Fedora |
|
See https://apps.fedoraproject.org/packages/ldc
| |
OpenSuse |
|
| |
CentOS |
|
||
Arch Linux |
|
|
|
Gentoo | see https://wiki.gentoo.org/wiki/Dlang | ||
FreeBSD |
|