Gcc gcc class hierarchy issue

I find it hard to wrap my head with gcc -fdump-class-hierarchy output. Are there any links / tutorials for using the information that appears for a given complex class (i.e.Multiple virtual inheritance, etc.)? Using the C ++ filter on the output definitely helped, but it also led to more questions (for example, calls that seem to be repeated in vtable, “not virtual tricks”, etc.). Any advice on speeding up so that this can be an effective tool for fixing memory problems, defining functions that should be called when, etc.

+3
source share
1 answer

You saw the new gcc api plugin http://gcc.gnu.org/wiki/GCC_PluginAPI it will also allow you to extract information from the compiler.

There is also a http://www.gccxml.org/HTML/Index.html gcc xml interface that allows you to retrieve data. This is used, for example, http://matt.eifelle.com/2009/07/21/using-gccxml-to-automate-c-wrappers-creation/ with a python interface.

I have studied various problems for many years, such as those in the introspector project, which is in terrible condition, and requires many years of work.

0
source

All Articles