Building a minimal part of GCC to get the GCC-XML executable.

This example assumes that you have the patched GCC source in the directory ~/gccxml, and that you are building it into a parallel directory called ~/gccxml-build.
$ cd ~
$ mkdir gccxml-build
$ cd gccxml-build
$ ../gccxml/configure --enable-languages=c++ --disable-nls --without-libstdcxx --without-libstdc
$ cd libiberty
$ make libiberty.a
$ cd ../gcc
$ make tm.h
$ make tm_p.h
$ make cc1plus
The cc1plus executable should now be available. Note that if you are doing this under cygwin, the last line of the example should be changed to "make cc1plus.exe" due to Windows-style executable naming.