Patent ID: 8638455

Claim:
A program executing apparatus, comprising: a nonvolatile memory that stores a program for activating an equipment and a variable used in the program and sustains the stored program and the variable even though power is not supplied, the program and the variable being able to be read out and written into the nonvolatile memory; and an executing unit that transmits the program and the variable to the nonvolatile memory when the activation of the equipment is instructed at an initial status where the program and the variable are not stored in the nonvolatile memory, and successively executes the program using the variable stored in the nonvolatile memory, and, when the activation of the equipment is re-instructed, executes the program using the variable stored in the nonvolatile memory, wherein the variable includes a first variable which does not vary even though the program is executed and a second variable which varies according to the execution of the program, and wherein when the activation of the equipment is re-instructed, the executing unit executes the program which is stored in the nonvolatile memory using the first variable and the second variable which are transmitted to and stored to the nonvolatile memory at the time when the activation of the equipment is instructed at an initial status, when the activation of the equipment is re-instructed, the executing unit executes the program which is stored in the nonvolatile memory using the first variable which is transmitted to and stored in the nonvolatile memory at the time when the activation of the equipment is instructed at an initial status and the second variable which is transmitted to and is stored in the nonvolatile memory at the time when the activation of the equipment is re-instructed, the activation of the equipment is performed in response to supplying the power to the equipment, when the activation of the equipment in instructed at the initial status, the executing unit stores in first and second areas of the non-volatile memory, the first and second variables obtained by decompressing the program, and when the activation of the equipment is re-instructed, the executing unit restores in the non-volatile memory, only the second variable among the first and second variables by decompressing a part of the program.