An electronic apparatus executes a program by using a page table for
managing, on a page unit basis, virtual and physical addresses of the
program recorded in a first recording medium. The page table is set in
such a manner that a physical address is unassigned to a designated area
of the program stored in the first recording medium. When the area
unassigned with the physical address is accessed during execution of the
program, data of the program corresponding to the accessed physical
address is copied from the first recording medium to a second recording
medium.