The method for selecting a bytecode execution mode of claim 2 wherein said step of immediately compiling a method including a loop comprises a predetermined number of modes whose optimization levels are changed according to said number of the loop iterations.