Compilers

From D Wiki
Revision as of 13:52, 2 December 2012 by Klickverbot (talk | contribs)
Jump to: navigation, search

Compilers: OverviewDMDGDCLDC

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.


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
  • Linux
  • Mac
  • FreeBSD
  • Win
  • Linux
  • Mac
  • FreeBSD
  • Win
  • Linux
  • Mac
  • FreeBSD
  • Win
Architectures
  • i386
  • amd64
  • i386
  • amd64
  • i386
  • amd64
Installation Automatic ? ?
Backend DMD GCC LLVM
License ? ? LDC-specific code: 3-clause BSD
Inline assembler Yes, x86 ? Yes, D-style (x86) and GCC-style (all targets)
SIMD Partial (?) Partial (?) Partial (?)

Linux specific
Object file format ? ? ?

Mac specific
Object file format ? ? ?

Windows specific
Object file format ? ? ?