Complier code optimization method for a source program having a first and second array definition and use statements in a loop
Abstract
A dataflow analysis processing of a compiler is executed when a loop of a source program includes a first array definition statement determining a value of an element of an array and an array use statement using the value of the element of the array. Whether or not a second array definition statement exists in a path from the first array definition statement to the array use statement in the program and whether or not the second array definition statement may possibly rewrite the value of the array defined by the first array definition statement are judged by comparing the subscripts associated with the array definition and the array use. For a pair of each array definition statement and each array use statement, a step for generating array definition/use relationship data from the first array definition statement to the array use statement only when the possibility of the rewriting is present. In the program transformation processing, the program transformation processing is achieved only when the array definition/use relationship data contains only an array definition/use relationship for which the result of the program execution is not changed by the program transformation.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 4 · Forward citations: 32.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A program translation method in a compiler for translating a source program into an object program through a sequence of the following processing of: (A) analyzing a lexical/syntax of the source program and then transforming the source program into a first program of an intermediate language suitable for a processing of the compiler; then and (B1) analyzing an order of execution of portions constituting the first program of the intermediate language and for obtaining control flow data representing a flow of an execution sequence; then and (B2) by using the control flow data, obtaining datafl
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 32 total)
References Cited — Backward Prior Art (4)
Non-Patent Literature (5)
- Aho et al., "Code Optimization, " in: Aho et al., Compilers Principles, Techniques, and Tools (Massachusetts, Reading, 1986), pp. 585-605, QA76.76.C65A37.
- Aho et al., "More About Data-Flow Analysis, " in: Aho et al., Principles of Compiler Design (Addison-Wesly, 1977), pp. 478-480.
- Aho et al., Code Optimization, in: Aho et al., Compilers Principles, Techniques, and Tools (Massachusetts, Reading, 1986), pp. 585 605, QA76.76.C65A37.
- Aho et al., More About Data Flow Analysis, in: Aho et al., Principles of Compiler Design (Addison Wesly, 1977), pp. 478 480.
- Kuck et al., "Dependence Graphs and Compiler Optimizations, " 8th Conference on Principles of Programing Languages, ACM (1981), pp. 207-218.