开发者

I need a tree dump option, which doesn't exist any more in current gcc versions

Older versions of GCC (for example 4.0.2 or 4.1.2) had the option -df (see Options for Debugging Your Program or GCC for 4.1.2). I used this option to dump the files filename.c.134r.life2 and filename.c.126r.life1, because I want to extract some values out of these files (for example the register count for every method).

The problem is, that in current versions of GCC (for example, 4.2.2) this option doesn't exist any more. There are other options and the tree dump with the name filename.c.135r.jump is pretty much the same. But the register count is missing in this dump, too and I couldn't find a dump which has that values.

Is there still a parameter, which gives me the old dumps in current GCC ver开发者_StackOverflowsions?


GCC 4.2-4.3 does really have the dump_flow_info function, which reports number of register used.

I'll search, how it can be called. Oh, yes:

gcc-4.3.1 file.c -fdump-rtl-all-all

produces

file.c.175r.lreg

with

file.c.175r.lreg:81 registers.

More specific option: -fdump-rtl-lreg-all. It was wested with 4.3.


Citing the page you gave:

[the dump options are] used for debugging the RTL-based passes of the compiler.

You should investigate their new plug-in infrastructure. Depending on what you are trying to achieve, you would be in far better position than parsing debug log not meant to bring you the information you want.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜