摘要 |
PURPOSE:To make a static memory capacity into a small capacity, by copying only a parameter for which copying is needed based on the attribute of the parameter 4 at the entry part of a procedure to be called, approaching it based on copy information, and recopying it, in the procedure call method by the value wave of the parameter in the generating course of the object program of a compiler. CONSTITUTION:In the entry processing of a translation part, the parameter is classified correspond into the need of the copying. In this example, the copying is not needed for the parameter PAR1, and is needed for the parameter PAR2. For the parameter for which the copying is needed, an intermediate word (I) for the copying is outputted, and also, information regarding the word is registered in the copy information. In the approaching processing of the parameter in the translation part, approaching is performed at every parameter based on the copy information, attribute information, and an allocation address, etc. Since the copy information is registered on the parameter PAR2, the object program to approach to a tentative parameter is generated, and is recopied in the output processing of the procedure.
|