how does cc1plus work internally
Brian Dessent
brian@dessent.net
Wed Jul 12 02:48:00 GMT 2006
Yu Yang wrote:
> /usr/local/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1plus test.i.cc.
> At the end, cc1plush will print out some statistical info as the end of this
> email shows. Beside the source code, Is there any documentation around
> that describe these stages? The gcc internals does not talk much about this.
You don't have to run cc1plus to get this, you can supply -ftime-report
when compiling as normal. There are many other debug dump options to
see what the compiler is doing internally -- see section 3.9 of the
manual.
The -ftime-report output tells you how much time was spent in each
pass. Passes are documented in section 8 of the internals manual.
Brian
More information about the Gcc-help
mailing list