PURPOSE: To accelerate the processing speed of program codes including guiding variables and to reduce a code size.
CONSTITUTION: A guiding variable detection means 12 detects the guiding variables included in the codes stored in the storage means 11 of the codes before optimization and registers them in a guiding variable holding means 13. A definition sentence eliminating means 14a detects using sentences for which the values of the respective guiding variables are used and when the detected using sentence is a sentence for defining the value of the only one guiding variable, eliminates the definition sentence of the value of the previous guiding variable. A conversion suppressing means 14b similarly detects the using sentences for which the values of the guiding variables are used and when the detected using sentence is the sentence for defining the values of the plural other guiding variables, eliminates the registration of the plural guiding variables from the guiding variable holding means 13. A code conversion means 15 converts the definition sentence of the value of the guiding variable registered in the guiding variable holding means 13 to the sentence for defining the new value by adding the value of the guiding variable and an increment.
IRIKOU JIYUNKO
YUGAWA HIROSHI