The same executable instruction stream as an executable instruction stream
generated by a dynamic compiler is reproduced to facilitate debugging of
the dynamic compiler. Provides compiler program for computer functioning
as: an execution status obtaining section for obtaining an execution
status of the program; a dynamic compilation section for compiling one of
the partial programs to be executed during execution of the program; an
execution status recording section for recording the execution status in
a memory area allocated on a memory of the computer; a file reading
section for reading a file containing contents of the memory area
allocated on the memory; and a replay compilation section for compiling
the one partial program on the basis of the execution status obtained
from the file to generate the same executable instruction stream as the
executable instruction stream generated by the dynamic compilation
section during the execution of the program.