Legal claims defining the scope of protection, as filed with the USPTO.
1. A first compile device comprising: branch history information code generating means which generates a first instruction for obtaining the number of loops, at least one loop, being included in an object program and each repeating a predetermined instruction stream plural times, a second instruction for obtaining the number of times of the execution of each loop at execution of the loop, a third instruction for obtaining the number of repetitions of the instruction stream in each loop at execution of the loop and a fourth instruction for obtaining information indicative of whether or not branch conditions of conditional branch instructions included in each loop were satisfied at execution of the loop; and compile means which enters a source program, activates said branch history information code generating means and generates an object program including the instruction group generated by said branch history information code generating means, wherein said compile means generates an object program which allocates the first instruction to the head of the program, the second instruction immediately before the first instruction of the instruction stream in each loop, the third instruction immediately after the first instruction of the instruction stream in each loop and the fourth instruction immediately after an instruction stream at a destination branched by the conditional branch instructions in each loop.
2. A compile method comprising: a step of branch history information code generation, the step including generation of a first instruction for obtaining the number of loops, at least one loop, being included in an object program and each repeating a predetermined instruction stream plural times, a second instruction for obtaining the number of times of the execution of each loop at execution of the loop, a third instruction for obtaining the number of repetitions of the instruction stream in each loop at execution of the loop and a fourth instruction for obtaining information indicative of whether or not branch conditions of conditional branch instructions included in each loop were satisfied at execution of the loop; and a compile step at which a source program is entered, said branch history information code generating step is executed and an object program including the instruction group generated at said branch history information code generating step is generated, wherein at said compile step the object program is so generated that the first instruction is allocated to the head of the program, the second instruction immediately before the first instruction of the instruction stream in each loop, the third instruction immediately after the first instruction of the instruction stream in each loop and the fourth instruction immediately after an instruction stream at a destination branched by the conditional branch instructions in each loop.
3. A recording medium which records thereon a program to make a computer execute its program processing, the program comprising: branch history information code generation processing which generates a first instruction for obtaining the number of loops, at least one loop, being included in an object program and each repeating a predetermined instruction stream plural times, a second instruction for obtaining the number of times of the execution of each loop at execution of the loop, a third instruction for obtaining the number of repetitions of the instruction stream in each loop at execution of the loop and a fourth instruction for obtaining information indicative of whether or not branch conditions of conditional branch instructions included in each loop were satisfied at execution of the loop; and compile processing which enters a source program, executes said branch history information code generation processing and generates an object program including the instruction group generated in said branch history information code generation processing, wherein in said compile processing the object program is so generated that the first instruction is allocated to the head of the program, the second instruction immediately before the first instruction of the instruction stream in each loop, the third instruction immediately after the first instruction of the instruction stream in each loop and the fourth instruction immediately after an instruction stream at a destination branched by the conditional branch instructions in each loop.
Complete technical specification and implementation details from the patent document.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.
Unknown
April 25, 2000
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.