Method for improving the efficiency of arithmetic code generation in an
optimizing compiler using machine independent update instruction
generation
    1.
    发明授权
    Method for improving the efficiency of arithmetic code generation in an optimizing compiler using machine independent update instruction generation 失效
    使用机器独立更新指令生成来提高优化编译器中算术代码生成效率的方法

    公开(公告)号:US5287510A

    公开(公告)日:1994-02-15

    申请号:US653842

    申请日:1991-02-11

    IPC分类号: G06F9/45 G06F9/44

    CPC分类号: G06F8/443

    摘要: This invention provides a process within an optimizing compiler for transforming code to take advantage of update instructions available on some computer architectures. On architectures which implement some form of autoindexing instructions or addressing modes, this process will improve the code generated for looping constructs which manipulate arrays in memory. The process is achieved by selecting memory referencing instructions inside loops for conversion to update forms, modifying those instructions to an update form available on a particular processor, and applying an offset compensation to other memory referencing instructions in the loop so as to enable the program to still address the appropriate locations while using the available autoindexing instructions. The improved compiler and compiler process enables the compiler to convert those program instructions that would otherwise convert to autoindexing instructions not supported by the processor to autoindexing instructions that are supported.

    摘要翻译: 本发明提供了一种优化编译器内的过程,用于转换代码以利用某些计算机体系结构上可用的更新指令。 在实现某种形式的自动索引指令或寻址模式的体系结构中,此过程将改进为在内存中操作数组的循环结构生成的代码。 该过程通过在循环内选择存储器引用指令来实现,用于转换为更新形式,将这些指令修改为在特定处理器上可用的更新形式,以及向循环中的其他存储器引用指令应用偏移补偿,以使程序能够 在使用可用的自动索引指令时,仍然可以处理相应的位置。 改进的编译器和编译器进程使编译器能够将那些程序指令转换为不受处理器支持的自动索引指令,以支持自动索引指令。