摘要 |
For each instruction of an assembler program, a register value settled by virtual execution by a resistor value extracting circuit is extracted as an internal state of a computer and stored in a storage. When a register value extracted for one instruction is identical with at least a part of a register value extracted for a prior instruction to the instruction, an unnecessary instruction judging circuit judges the instruction to be an unnecessary instruction which overlaps the prior instruction, then the unnecessary instruction is deleted from the program by a modifying circuit. Or the execution of the unnecessary instruction is inhibited, leaving the unnecessary instruction in the program. Thereby, the unnecessary instruction overlapping the prior instruction is easily detected. Thus the execution speed is enhanced and the program size is reduced.
|