[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.

D by Walter Bright, see http://d-programming-language.org/

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 available for Windows and x86 Linux

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. There is also a binary version available for Linux, but DMD is not re-distributable and the back-end source code is not available.

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 usual Apple versions of the GCC C Compiler (gcc) and the GCC C++ Compiler (g++).


Current Release

If you are running on Intel you want the "X86" versions, if running on PowerPC you want the "PPC" versions. Versions that work on both PowerPC and Intel are marked "Universal". D doesn't support 64-bit code (PPC64/x86_64) or vector code (AltiVec/SSE) yet. GDC 0.24+ requires Mac OS X 10.4+ (gcc-4.0)

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

Note: GDC doesn't work with Mac OS X 10.5 "Leopard" and Xcode 3.0 yet, but you can use the gdc compiler for Mac OS X 10.4 "Tiger" and Xcode 2.5 meanwhile (on Leopard). You will need some GCC support files from the GDC tarball (not in the gdcmac PKG). More detailed instructions to follow shortly...

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.

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

Please note that you need a recent version of Xcode, noted above (e.g. 1.2+ for Panther, or 2.2+ for Tiger). You must also upgrade to the latest version of the Mac OS X operating system (e.g. 10.2.8 for Jaguar, 10.3.9 for Panther)


Previous Releases

Download GDC 0.23 for Mac OS X, based on DMD 1.007 and released on Mar 05 2007:

Universal:
 GDC 0.23 for Tiger (Xcode Tools 2.4) based on Apple GCC 4.0, 10.8 MB

Download GDC 0.22 for Mac OS X, based on DMD 1.004 and released on Feb 05 2007:

Universal:
 GDC 0.22 for Tiger (Xcode Tools 2.4) based on Apple GCC 4.0, 9.9 MB

Download GDC 0.21 for Mac OS X, based on DMD 1.00 and released on Jan 02 2007:

Universal:
 GDC 0.21 for Tiger (Xcode Tools 2.4) based on Apple GCC 4.0, 9.9 MB
 Apple "Universal" GCC build 5363, gdc-4.0 that allows building on and for both Intel and PowerPC.
PowerPC: (deprecated)
 GDC 0.21 for Panther (Xcode Tools 1.5) based on GCC 3.3.6*, 2.4 MB
 Panther (Mac OS X 10.3) with Xcode 1.x uses Apple GCC 3.3, this gdc-3.3 should be compatible.

Note: Full D templates do not work with GCC 3.x for Panther, which breaks "readf" and DMDScript and some other programs. We need to back-port a feature called "one-only linkage" from Apple GCC for them to work correctly.

Unsupported:
 GDC 0.19 for Jaguar (Dec 2002 Dev Tools) based on GCC 3.3.6*, 2.4 MB
 Jaguar (Mac OS X 10.2) originally shipped with GCC 3.1, which must first be upgraded.

Unavailable:
 GDC 0.19 for Puma (Dec 2001 Dev Tools) - not available nor supported
 Puma (Mac OS X 10.1) originally shipped with GCC 2.95, which is too old to run GDC.


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>