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

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

SourceForge.net Project page: http://sourceforge.net/projects/gdcmac/ (Bug Reports, Feature Requests, etc)

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/

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++).

Latest Development

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

For the latest language development, see: dlang.org

There will be no support for GCC versions older than 4.5.0 4.7.0, and the new license will be GPL version 3.

For the latest compiler development, see: gdcproject.org

Current Release

Note: The packages might have some issues with Mac OS X 10.7 and 10.8, 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:

 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

 d-xcode-support.zip (basic support files for Xcode 1.x) - 14 KB
 D file and language specifications as well as a icon, for use with the Xcode IDE

Syntax Coloring:
 Smultron (Mac OS X 10.4 and up) - see website for Smultron
 The text editor Smultron comes with D programming language support built-in

 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.

Support This Project Mac OS X packaging of GDC was done by Anders F Björklund <afb@users.sourceforge.net>