Red Hat Linux 7 Unleashed

Red Hat Linux 7 Unleashed

By William Ball

New Features of the GNU egcs Compiler System

The egcs (pronounced "eggs") program suite originally was an experimental version of the gcc compiler whose development was first hosted by Cygnus Support (which is now part of Red Hat). Starting with Red Hat 5.1 for Intel, egcs was made available for installation as part of your Red Hat Linux system.

When first being developed, Cygnus described egcs as an experimental step in the development of gcc. Since its first release in late summer 1997, egcs has incorporated many of the latest developments and features from parallel development of gcc with many new developments of its own, such as a built-in Fortran 77, Java, and Objective C front ends. Some people have suggested that the name be changed from "Experimental GNU Compiler System" to "Enhanced GNU Compiler System."

Although some Linux developers may have felt that development of egcs represented a fork (or split) in gcc compiler development, Cygnus stated that cooperation between the developers of gcc and egcs would prevent this. The hope, according to Cygnus, was that the new compiler architecture and features of egcs would help gcc be the best compiler in the world.

In April 1999, egcs officially became part of future GNU gcc software, and according to Cygnus, the egcs team will be responsible for rolling out future GCC releases. We can only hope that Red Hat will live up to that commitment.

Problems might occur when you are using egcs if you try to build a software package written in C++ that references gcc in its Makefile.

The Makefile script may contain names and locations of programs and files used during the build process. The wmx Makefile contained the following two definitions:

CC    = gcc
CCC    = gcc

While this will work if you have only gcc installed, if you install the egcs suite, you will need to change the name of the designated C++ compiler in your Makefile to g++, like this:

CC    = gcc
CCC    = g++

Just be aware that if you use egcs to compile C++ source files (files ending in .C, .cc, or .cxx), you might have to fix the software's Makefile first.

For more information about egcs and the latest updates, versions, or feature news about egcs, browse to http://www.gnu.org/software/gcc/gcc.html. You will find an egcs FAQ and pointers to the latest stable egcs release, or snapshots of the most recent development version.

Share ThisShare This

Informit Network