GNU Compiler Collection

The GNU Compiler Collection (GCC) contains what is possibly the technically most advanced currently maintained C/C++ compiler for OS/2, generating good code and supporting the latest standards. Because it is available and maintained for a large number of operating systems it is also for many the first choice when it comes to writing portable code. However it should be noted that many of the operating systems listed as being supported by GCC have had their support removed in the 4.x branch or earlier, meaning that to archive full portability you may have to keep 2.x (EMX) or 3.x branches of GCC going if you are targeting some of the less used OS's. In addition systems that are not UNIX like may need emulation layers and libraries and in some cases such as with Microsoft Windows their uses can be clunky or even problematic.

Source and References

 * For a long time the EMX collection included the preferred GNU GCC port for OS/2 developers, it still is to a degree preferable to the later DJGPP for DOS development work even though the latter collection supports newer versions of GCC.
 * Innotek GCC was also available but Innotek is no longer in business since it was acquired by Sun Microsystems.

Versions

 * GCC/2
 * Jun 1992: 2.1
 * Nov 1992: 2.2.2
 * Apr 1993: 2.3.3
 * Nov 1993: 2.5.4 - Objective C support
 * Nov 1994: 2.6.1


 * EMX
 * Feb 1992: emx 0.8b - GCC 1.40
 * Mar 1992: emx 0.8c - GCC 2.1, GAS 1.38.1, GDB 4.4
 * May 1992: emx 0.8d - GCC 2.1
 * Sep 1992: emx 0.8e - GCC 2.2.2, GDB 4.6
 * Jan 1993: emx 0.8f - GCC 2.3.3, GDB 4.7
 * Jul 1993: emx 0.8g - GCC 2.4.5, GDB 4.9
 * Dec 1993: emx 0.8h - GCC 2.5.7 / 2.5.8


 * Dec 1994: emx 0.9a - GCC 2.6.3, GAS 2.3, GDB 4.13
 * 1995: emx 0.9a fix 06 - GCC 2.7.0
 * Sep 1996: emx 0.9c - GCC 2.7.2.1
 * Dec 1998: emx 0.9d - GCC 2.8.1


 * EMX-based
 * 1999-06-14: PGCC 1.1.1 (EGCS)
 * 3.0.3
 * 2003-03-07: GCC 3.2.1 R2 - beta version by Andrew Zabolotny - emx 0.9d required


 * Innotek GCC / Netlabs
 * Jul 2003: Innotek GCC for OS/2 3.2.2 beta
 * 2005-11-17: GCC 3.3.5 GA2
 * 2014-10-26: GCC 3.3.5 CSD6

by Paul Smedley
 * Latest ports
 * GCC 4.9.2 (2014-12-18)
 * GCC 6.3.0 Alpha (2016-12-22)
 * GCC 7.2.0 Alpha (2017-05-07)

Links

 * OS/2 ports: http://os2ports.smedley.info/index.php?page=gcc-v4-9-x
 * Official Site: https://gcc.gnu.org/

License and availability

 * Open source software released under the GPL v3

Related Articles

 * Compiling "OS/2 Presentation Manager Programming" Samples on 2016 (2016)
 * Using The GNU Configure Scripts In OS/2 by Dale DePriest (March 1996)

Publications

 * Innotek development tools - Presentation of GCC and Java (2003)

Authors and publisher

 * Free Software Foundation
 * Mikuláš Patočka (GCC 3.x OS/2 port)
 * Paul Smedley (Current OS/2 port maintainer)