摘要 |
A compiler device comprising a compiler section for generating an object program to be executed through generation of a thread by compiling a source program based on object-oriented programming. An object data detector detects the object data for a method based on the class definition of the source program. An object-code generator incorporates the result of detection in the object data detector into the object program. Further, when executing the object program, the object-code generator incorporates into the object program an exclusive-control instruction for controlling such that only one thread out of a plurality of threads can execute the method according to object-data-retention information.
|