摘要 |
A variable length class definition in a program is converted by class definition conversion means P2 into a fixed length section data structure definition D4 and a variable length section data structure definition D5, which are supplied to a program code section D2. If reference is made to a variable length object D6 during the execution of the program, casting means P6 casts, via control means P4, the pointer to the variable length object D6 into the fixed length section data structure definition D4. Then the pointer variable of the fixed length data section to the variable length data section is taken out, and cast by the casting means P6 into the variable length section data structure definition D5. Variable reference means P7 finds the offset of the variable to be referred to in the variable length data structure definition D5, and takes out the value of the variable length data section.
|