If this rings a bell with someone please reflect the sounds over here.
Thanks and a nice weekend to all readers of clt.
Helmut Giese
Have a look in the standard man gcc
and search for all the options of the form -fdump
There's a score of them, each able to produce a file of output at a
specific (requested) stage in the parsing, compilation, optimization,
and code generation phases.
There's undoubtably documentation on gcc's website explaining the format
of each of these files.
--
Chris.
There is a tool named gcc_xml. More information here:
HTH
--
Thomas
For C, see http://www.semanticdesigns.com/Products/FrontEnds/CFrontEnd.html.
For C++, see
http://www.semanticdesigns.com/Products/FrontEnds/CppFrontEnd.html
These front ends are built on top of DMS, customizable program analysis
and transformation infrastructure, see
http://www.semanticdesigns.com/Products/DMS/DMSToolkit.html
DMS can be configured to dump as much or as little of the compiler-like data
structures that result from a full parse of the source code: ASTs, symbol
tables, flow anlayses,
...
--
Ira Baxter, CTO
www.semanticdesigns.com
GCCXML will dump type and declaration information.
It won't give you information about the content of C functions.
DMS does.
-- IDB