The GNU Ada Translator (GNAT) component of the GNU GCC has been ported to MacOS X/Darwin using the Darwin GCC3 source tree.
This snapshot corresponds to Apple's April 2002 Developer CD version of gcc3. The snapshot includes a version of GNU pth with the pthreads interface renamed to gthreads to prevent collisions with MacOS X pthreads. This snapshot requires the April 2002 Developer Tools be installed.
The compiler is packaged with Apples Installer so it will install itself in the same manner as any other well-behaved Macintosh OS X Application.
Back to Top
A more mature version of the compiler is available here.
This 10.2 compiler is integrated with Apples C++, and Objective C compilers.. This version has a fix to make it work with project builder better, it also brings the compiler up to the same level of gcc source code as the December Development tools update.
If you have installed previous versions of the compiler you may need to remove the path variable you setup in your .tcshrc file (or whereever you put it) so remove the line
setenv PATH /usr/local/gnat/bin:$PATH
from your system. there is no need for a seperate compiler with the wavefront.
To use this compiler with Mac OS X 10.3 do the following
in terminal do
sudo gcc_select 3.1
then install this version of the compiler.
You can optionally use this with xcode by installing xcode before doing the gcc_select.
There is one limitation, you can only use ada while you have gcc set to 3.1. If you want to use latest apple compilers for c/c++/objective c you can do gcc_select 3.3. reversing this when you need to use ada. You do not need to do this when using the new 10.3 version of the compiler (see below).
Back to Top
This 10.3 compiler is integrated with Apples C++, and Objective C gcc 3.3 compilers. This compiler works both from the command line using standard unix commandline interface or from Apples new XCode IDE.
Please note that this version of the compiler is very much a beta test version of the compiler and it has had only limited testing. If you have problems you can uninstall this compiler and reinstall the 10.2 compiler using the uninstall instructions provided in this installer.
For right now this is the gcc 3.3 compiler in an installer to work with 10.4 Tiger.
A true gcc 4.0 compiler is forthcoming
Andrew Reynolds has built a tarball of the current FSF version of gcc 4.01 with support for Ada and C. There is no C++ support in this compiler. This compiler is installed by doing
sudo tar -zxvf gcc-4.0-gnat-10.4.1-20050625-dynamic.tgz
the compiler is placed in /usr/local/ada. to use it set PATH environment variable to add /usr/local/ada/bin to the front of the path. in tcsh you do this in the file "~/.tcshrc" by adding the following line
setenv PATH /usr/local/ada/bin:$PATH
Questions on using thi s compiler should be addressed to the mailing list.
The latest and greatest version of the compiler is available here. A number of fixes have been made tot he compiler to fix reported problems. The Library Fix (Available below) has been integrated into this version of the installer so you do not need the fix with this version of the compiler). In addition a number of ACATS test failures have been fixed. The segv error in gnatmake when a compile failes has been fixed. Several code optimization bugs have been fixed.
Note: since the development team has a problem with not having clean machines to test this installer, we would appreciate all feedback on how this works. Also be sure that you have a backup of the last installer you used. The 10.2 Compiler above may be better tested so if this release causes problems download and install the 10.2 or 10.3 release above.
Back to Top
Source code for the compiler is available here.
Back to Top