Data processing: software development – installation – and managem – Software program development tool – Translation of code
Reexamination Certificate
1998-10-29
2001-09-04
Powell, Mark R. (Department: 2122)
Data processing: software development, installation, and managem
Software program development tool
Translation of code
Reexamination Certificate
active
06286136
ABSTRACT:
BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention relates to a compile processing apparatus and method compiling a program formed of a plurality of classes each of which is provided with an initializing step. The present invention also relates to a storage medium storing a program causing a computer to execute a process in the above compile processing apparatus. Further, the present invention relates to a program executing apparatus and method executing a program formed of a plurality of classes each of which is provided with an initializing step and to a storage medium storing a program causing a computer to execute a process in the above program executing apparatus.
2. Description of the Related Art
In the resent years, programming for a computer system has been complex. The number of programs in which the initialization must be provided as the language specification is increased. Due to such programs, even if a programmer is not conscious to the initialization, the initialization process can be executed. As a result, the number of mistakes in a program can be decreased.
The initialization process may be executed once in the beginning. To ensure this condition, an execution speed of a program is lowered. Thus, it is necessary to improve the execution speed of such a type of program.
A program, such as an object oriented program, is formed of a plurality of classes in each of which data and procedure are encapsulated.
Such a class is used to execute data processing based on message communication. In the message communication, reference of data and access of procedure can be performed.
Further, the class has an initializing step which is named as a class-initializer. The class-initializer executes an initializing process once before the data is accessed in the beginning or before the procedure is accessed in the beginning.
To ensure activating the class-initializer only once, a conventional compiler inserts an IF-sentence for checking whether the class-initializer has been activated when a statement requiring the class-initializer is compiled. As a result, when it is determined, by the IF-sentence, that the class-initializer has been activated, a process is carried out so that the call-initializer is not accessed. On the other hand, when it is determined that the class-initializer has not yet been activated, the class-initializer is accessed and a flag indicating the activation of the class-initializer is activated in the class provided with the class-initializer.
In addition, there is another programming technology in which the format of the program is changed to that having no class-initializer while the program is being executed. Due to such a programming technology, activating the class-initializer only once is ensured.
However, according to the former technology in which activating the class-initializer only once is ensured by insertion of the IF-sentence, if the class-initializer is accessed a large number of times, the execution speed of the program is lowered since the IF-sentence is checked every time the class-initializer is accessed.
The latter technology in which the format of the program is changed to that having no class-initializer while the program is being executed to ensure activating the class-initializer only once is useful for a case, such as a case of an interpreter, where an interpreting process and a process are simultaneously executed. However, in a case where the interpreting process and a process are separately executed, a system for changing the format of the program is needed to provided in the program and the execution speed of the program is lowered by the execution of the system.
SUMMARY OF THE INVENTION
Accordingly, a general object of the present invention is to provide a novel and useful compile processing apparatus and method in which the disadvantages of the aforementioned prior art are eliminated.
The specific object of the present invention is to provide a compile processing apparatus and method capable of compiling a program formed of a plurality of classes having initializing steps so that the execution speed is improved.
The above objects of the present invention are achieved by a compile processing apparatus compiling a program formed of a plurality of classes having initializing procedures, comprising: specifying means for specifying an initializing procedure when a statement to be compiled requires the initializing procedure; determination means for executing a determination process for determining whether the initializing procedure specified by the specifying means can be considered to not affect other classes; and changing means for changing the statement so that the statement does not access the initializing procedure when the determination means determines that the initializing procedure can be considered to not affect the other classes.
According to the present invention, initializing procedure having no side effect is activated before the program is executed and a program part requiring the initializing procedure having no side effect is changed so that the program part does not access the initializing procedure. Thus, it can be ensured, without using the IF-sentence, that the initializing procedure is activated only once before the program is executed. As a result, the execution speed of the program can be improved.
Another object of the present invention is to provide a program executing apparatus capable of executing the program formed of a plurality of classes having the initializing steps at an improved executing speed.
The above objects of the present invention are achieved by a program executing apparatus executing a program formed of a plurality of classes having initializing procedures, comprising: determination means for determining whether information indicating that an initializing procedure is to be executed is recorded in each of classes when the program is executed; and activation means for activating the initializing procedure included in a class, before the program is executed, when the determination determines that the information is recorded in the class.
REFERENCES:
patent: 5555411 (1996-09-01), England et al.
patent: 5832275 (1998-11-01), Olds
patent: 6085034 (2000-07-01), Danforth
Shim et al., A Real-Time Reconfigurable Entrance Control System, May 1996, IEEE, pp. 244-251.*
Sunaga et al., Applicability of “Plug-in” Online File Modifications . . . , Sep. 1998, IEEE, pp. 314-318.
Hayashi Masakazu
Kimura Yukihiro
Mita Kaname
Watanabe Yuji
Chavis John Q.
Fujitsu Limited
Powell Mark R.
Staas & Halsey , LLP
LandOfFree
Compile processing apparatus and method and program... does not yet have a rating. At this time, there are no reviews or comments for this patent.
If you have personal experience with Compile processing apparatus and method and program..., we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Compile processing apparatus and method and program... will most certainly appreciate the feedback.
Profile ID: LFUS-PAI-O-2462299