[see also the Windows or the GNU/Linux versions]

Please note: The D Programming Language version 1 is discontinued effective December 31, 2012.

For the latest language development, see: dlang.org

There is now no support for GCC versions older than 4.7.0, and the new license is GPL version 3.

For the latest compiler development, see: gdcproject.org

gdcmac - GCC D Compiler for Mac OS X (Apple GCC)

SourceForge.net Project page: http://sourceforge.net/projects/gdcmac/

D logo
 

D is a general purpose systems and applications programming language.

The D programming language is a higher level language than C++, but retains the ability to write high performance code and interface directly with the operating system API's and with hardware. D is not a scripting language, nor an interpreted language.

The Digital Mars D Compiler (DMD), is also available for various systems

DMD by Digital Mars, see http://www.digitalmars.com/d/1.0/

The official D "reference" compiler, DMD, is based on the same back-end as the Digital Mars C/C++ compiler for Windows. The GDC compiler was made by adapting the DMD frontend source code, to work with the regular GCC backend.

The GCC D Compiler (GDC) is based on the GNU Compiler Collection (GCC)

GDC by David Friedman, see http://dgcc.sourceforge.net/

You can run programs created with GDC on any Mac OS X machine (no special run-time libraries required) It is also possible to link with programs created by the Apple versions of the GCC C Compiler (gcc) and the GCC C++ Compiler (g++).


Current Release

Note: The packages have issues with later OS X versions, as they were built originally for Tiger and Leopard.

Download GDC r229 for MinGW, based on DMD 1.030 and released in June 2008:

 GDC r229 for Leopard (Mac OS X 10.5) based on Apple GCC 4.2 (5465) - 15.1 MB

 GDC r229 for Tiger (Mac OS X 10.4) based on MinGW GCC 4.0 (5363) - 12.6 MB

You need to have regular Xcode Tools already installed, in order to use this GDC package. See also GDC with Xcode for how to use the Xcode IDE with D language. Or do you need some additional help,  Getting Started with GDC ? If you don't like Installers, tarballs (and source code) are available too

Previous Release

Download GDC 0.24 for Mac OS X, based on DMD 1.020 and released on Aug 22 2007:

Universal:
 GDC 0.24 for Tiger (Xcode Tools 2.4) based on Apple GCC 4.0, 11.0 MB
 Apple "Universal" GCC build 5363, gdc-4.0 that allows building on and for both Intel and PowerPC.
 GDB-D 0.2 for Tiger (Xcode Tools 2.4) based on Apple GDB 6.3, 4.6 MB
 Apple "Universal" GDB build 563, gdb that allows debugging D programs on both Intel and PowerPC.


Xcode Support:
 Xcode Plugin (Xcode 2.x) - see the new plugin at D for Xcode
 For Xcode 1.x, use some custom build rules or commandline gdc/gdb in Terminal

Syntax Coloring:
 d-textwrangler-lm.zip (TextWrangler) - 1 KB
 Simple codeless syntax coloring language module for TextWrangler and BBEdit


Software License

GDC is Free Software, released under the GNU General Public License (GPL)

Free Software grants you four basic freedoms: (see also the License Agreement)

  • Freedom to use the program, for any purpose.
  • Freedom to study how the program works and to adapt it to your needs (source code access).
  • Freedom to copy and distribute (you can help your neighbour).
  • Freedom to improve the program and make the enhancements available so all the community benefits.