Method for improving instruction selection efficiency in a DSP/RISC compiler
First Claim
1. A method for improving instruction selection efficiency in a DSP/RISC compiler, comprising the steps of:
- determining a semantic tree for a basic block;
finding all matching combinations for the semantic tree with reference to a set of patterns;
determining cycle number and instruction length for all combinations;
filtering the instruction length greater than a predetermined instruction length and extra ones having the same cycle number and instruction length according to the determined cycle number and instruction length; and
choosing one combination with the smallest cycle number from the remaining combinations and outputting the one combination to be the desired object code.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for improving instruction selection efficiency in a DSP/RISC compiler. Concurrently obtaining optimal performance and space, the method includes the following steps: determining a semantic tree for a basic block; finding all matching combinations for the semantic tree with reference to a set of patterns; determining cycle number and instruction length for all combinations; filtering the instruction length greater than a predetermined instruction length and extra ones having the same cycle number and instruction length according to the determined cycle number and instruction length; and choosing one combination with the smallest cycle number from the remaining combinations and outputting the one combination as the desired object code.
-
Citations
13 Claims
-
1. A method for improving instruction selection efficiency in a DSP/RISC compiler, comprising the steps of:
-
determining a semantic tree for a basic block;
finding all matching combinations for the semantic tree with reference to a set of patterns;
determining cycle number and instruction length for all combinations;
filtering the instruction length greater than a predetermined instruction length and extra ones having the same cycle number and instruction length according to the determined cycle number and instruction length; and
choosing one combination with the smallest cycle number from the remaining combinations and outputting the one combination to be the desired object code. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
Specification