5. Source Tree Layout
The source code to CPPX is comprised of two parts, both in the main directory.
When you unpack the source archive, you should end up with a directory
named CPPX. This directory contains a README file and thee subdirectories:
-
doc - contains the document you are reading
-
gcc - the changes to the gcc compiler
-
gd - the source for the transformers, exporters and driver scripts
5.1 Changes to the GCC compiler
Eventually, the gcc changes will be distributed as a patch. For now, it
consists of files that are to be copied into the gcc subdirectory of the
gcc source code. The structure of the gcc directory is:
-
Makefile.in - new makefile (adds gd_graph.h and gd_graph.c to appropriate
build units)
-
c-dump.c - dump routines for common nodes in the GCC ASG
-
gd_graph.h - definition of the GD graph structure and prototypes for some
utility routines
-
gd_graph.c - implmentation of utility routines and static data
-
cp
-
dump.c - dump routines for c++ specific parts of the GCC ASG
-
Make-lang.in - new makefile (adds gd_graph.h and gd_grapoh.c to appropriate
build units)
These changes have been implemented and tested ataginst the Janugary 15,
2001 snapshot of version 2.97 of the gcc compiler.
5.2 Source for the transformers, eporters and Driver Scripts
Everyting is in a single directory here. The top 3 lines of the makefile
must be changed based on where the source is unpacked. For more explicit
instructions see the next section. For more details on each of the transformations,
see the previous section.