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.