Method and apparatus for hierarchical restructuring of computer code
    10.
    发明授权
    Method and apparatus for hierarchical restructuring of computer code 失效
    计算机代码分级重组的方法和装置

    公开(公告)号:US06381739B1

    公开(公告)日:2002-04-30

    申请号:US08647862

    申请日:1996-05-15

    IPC分类号: G06F944

    CPC分类号: G06F11/3612 G06F8/443

    摘要: A compiler (142) constructs (FIGS. 14-32) a Reduced Flowgraph (RFG) from computer source code (144). The RFG is used to instrument (FIG. 36) code (142). An object module is created (146) and executed (148). Resulting path frequency counts are written to a counts file (154). A compiler (158) uses the source code (144) and the generated counts to identify runtime correlations between successive path edges and Superedges. An object module (159) is generated containing reordered (156) code generated to optimize performance based on the runtime correlations. If cloning is enabled (152), high frequency path edges are cloned (154) or duplicated to minimize cross edge branching.

    摘要翻译: 编译器(142)从计算机源代码(144)构造(图14-32)缩减流程图(RFG)。 RFG用于仪器(图36)代码(142)。 创建对象模块(146)并执行(148)。 结果路径频率计数被写入计数文件(154)。 编译器(158)使用源代码(144)和生成的计数来识别连续的路径边缘和超区域之间的运行时间相关性。 生成包含重新排序(156)代码的对象模块(159),以根据运行时相关性来优化性能。 如果启用克隆(152),则克隆(154)或复制高频路径边缘以最小化交叉边缘分支。