Characterizations of Reducible Flow Graphs
Journal of the ACM (JACM)
Covering Points of a Digraph with Point-Disjoint Paths and Its Application to Code Optimization
Journal of the ACM (JACM)
Assembling code for machines with span-dependent instructions
Communications of the ACM
Flow Analysis of Computer Programs
Flow Analysis of Computer Programs
The best simple code generation technique for WHILE, FOR, and DO loops
ACM SIGPLAN Notices
Can structured programs be efficient?
ACM SIGPLAN Notices
Hi-index | 0.00 |
This paper considers the problem of generating a linear sequence of instructions from a flow graph so as to minimize the number of jumps. We show that for programs constructed from atomic statements with semicolon, if-then, if-then-else, and repeat-until, the minimal number of unconditional jumps is bounded from above by e + 1 and from below by max {e - b + 1, @?(e + 1)/2@?}, where e is the number of if-then-else statements and b is the number of repeat-until statements. We show that these bounds are tight and present a linear-time algorithm for finding the optimal translation of such a program.