This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
|Developer(s)||New York University (NYU), AdaCore and the GNU Project|
|Operating system||FreeBSD, Linux,|
Mac OS X,
plus others as supported by FSF GNAT within GCC
|License||GNU GPL 3+ with GCC Runtime Library Exception|
GNAT is a free-software compiler for the Ada programming language which forms part of the GNU Compiler Collection (GCC). It supports all versions of the language, i.e. Ada 2012, Ada 2005, Ada 95 and Ada 83. Originally its name was an acronym that stood for GNU NYU Ada Translator, but that name no longer applies. The front-end and run-time are written in Ada.
The GNAT project started in 1992 when the United States Air Force awarded New York University (NYU) a contract to build a free compiler for Ada to help with the Ada 9X standardization process. The 3-million-dollar contract required the use of the GNU GPL for all development, and assigned the copyright to the Free Software Foundation. The first official validation of GNAT occurred in 1995.
In 1994 and 1996, the original authors of GNAT[clarification needed][who?] founded two sister companies, Ada Core Technologies in New York City and ACT-Europe (later AdaCore SAS) in Paris, to provide continuing development and commercial support of GNAT. The two companies always operated as one entity, but did not formally unify until 2012 as AdaCore.
GNAT was initially released separately from the main GCC sources. On October 2, 2001, the GNAT sources were contributed to the GCC CVS repository. The last version to be released separately was GNAT 3.15p, based on GCC 2.8.1, on October 2, 2002. Starting with GCC 3.4, on major platforms the official GCC release is able to pass 100% of the ACATS Ada tests included in the GCC testsuite. By GCC 4.0, more exotic platforms were also able to pass 100% of the ACATS tests.
All versions leading up to and including 3.15p are licensed under the GMGPL offering similar runtime exceptions. The GMGPL license is GNU GPL 2 with a linking exception that permits software with licenses that are incompatible with the GPL to be linked with the output of Ada standard generic libraries that are supplied with GNAT without breaching the license agreement.
FSF GNAT is part of most major Linux or BSD distributions and is included in the main GCC Sources.
GNAT Pro is a supported version of GNAT from AdaCore.
In addition to FSF GNAT and AdaCore's GNAT Pro, AdaCore releases additional versions (GNAT-GPL, a public older version of GNAT Pro, and GNAT GAP, a version for AdaCore's educational programs). These AdaCore versions have the runtime exceptions removed, this requires software that is linked with the standard libraries to have GPL-compatible licenses to avoid being in breach of the license agreement.
JGNAT was a GNAT version that compiled from the Ada programming language to Java bytecode. GNAT for dotNET is a GNAT version that compiles from the Ada programming language to Common Language Infrastructure for the .NET Framework and the free and open source implementations Mono and Portable.NET.
- Javier Miranda, Edmond Schonberg (June 2004). GNAT: The GNU Ada Compiler. Retrieved 2008-06-06.
- Edmond Schonberg, Bernard Banner (1994). "The GNAT project". Proceedings of the conference on TRI-Ada '94. ACM. pp. 48–57. doi:10.1145/197694.197706. Retrieved 2008-06-07.
|The Wikibook Ada Programming has a page on the topic of: Finding and installing Ada|
- History of the GNAT Project
- GNAT in the GCC wiki
- FSF GNAT installation instructions for major platforms
- The GNU Ada Project — more FSF versions of GNAT
- Debian Ada Policy — packaging of GNAT and other Ada programs in Debian
- Write It in Ada — Run It on the Java Virtual Machine