DYNAMICALLY COMPILING TIME SETTING METHOD, BYTE CODE EXECUTING MODE SELECTING METHOD AND COMPUTER

    公开(公告)号:JP2000222220A

    公开(公告)日:2000-08-11

    申请号:JP1933599

    申请日:1999-01-28

    Applicant: IBM

    Abstract: PROBLEM TO BE SOLVED: To efficiently execute a byte code by combining an interpreter and a compiler. SOLUTION: In the case where an instruction to execute is a backward condition branching instruction in executing a byte code by the interpreter, whether the condition branching instruction is the back edge of a loop or not is judge S2. In the case where it is judged to be the back edge of the loop, the number of the times of the loop is predicted S3 and the predicted number of the times of the loop is stored in a storing device. According to the predicted number of the times of the loop, the execution mode of the byte code is selected S4. This execution mode includes a mode to immediately compile a method including the loop and a mode to execute the byte code by the interpreter.

Patent Agency Ranking