我需要一个树转储选项,它在当前的gcc版本中不再存在 [英] I need a tree dump option, which doesn't exist any more in current gcc versions
问题描述
旧版本的gcc(例如4.0.2或4.1.2)具有 -df
选项(请参阅 http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc /Debugging-Options.html#index-fdump_002drtl_002dcfg-357 )。我使用这个选项来转储文件 filename.c.134r.life2
和 filename.c.126r.life1
因为我想从这些文件中提取一些值(例如每个方法的寄存器计数)。
Older versions of gcc (for example 4.0.2 or 4.1.2) had the option -df
(see http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Debugging-Options.html#index-fdump_002drtl_002dcfg-357). 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).
问题是,在当前版本的gcc 4.2.2)此选项不再存在。还有其他选项,名为 filename.c.135r.jump
的树转储几乎是一样的。但是这个转储中的寄存器计数也丢失了,我找不到有该值的转储。
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.
还有一个参数,它给我老的转储当前gcc版本?
Is there still a parameter, which gives me the old dumps in current gcc versions?
推荐答案
Gcc 4.2-4.3确实有 dump_flow_info
函数,它报告使用的寄存器数量。
我将搜索,如何调用。
Gcc 4.2-4.3 does really have dump_flow_info
function, which reports number of register used.
I'll search, how it can be called.
哦,是的:
gcc-4.3.1 file.c -fdump-rtl-all-all
产生
file.c.175r.lreg
与
file.c.175r.lreg:81 registers.
更具体的选项: -fdump-rtl-lreg-all
。测试4.3
More specific option: -fdump-rtl-lreg-all
. Tested with 4.3
这篇关于我需要一个树转储选项,它在当前的gcc版本中不再存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!