How to Run GCC-XML

gccxml [options] <input-file> -fxml=<output-file>
GCC-XML parses a C++ source file as it is seen by the compiler when it is built. An easy-to-parse XML representation of the class, function, and namespace declarations is dumped to a specified file. Full C preprocessing transforms the file into a C++ translation unit as seen by the compiler. This means that GCC-XML should make use of the same standard library and other header files as the compiler. GCC-XML can be configured to simulate any of several popular compilers.

Command-line Options

The following options are available for running GCC-XML: Other flags, such as -I and -D, are passed on to the patched GCC C++ parser executable.

Configuration Settings

GCC-XML is designed to simulate a compiler's parser while reading C++ source code. Some configuration settings are needed to determine how to simulate a particular compiler of the user's choice. The following settings can be used to configure GCC-XML: There are several means by which these settings are configured. They are listed here in order of precedence (highest first): Most users should not have to adjust the defaults for these settings. There is a default GCCXML_CONFIG file provided in the support library directory after installation. It configures GCC-XML to simulate the compiler that was used to build it.

Supported Compilers

GCC-XML can simulate any of the following compilers: Advanced users can simulate other compilers by manually configuring the GCCXML_FLAGS setting. Contact the mailing list for help.