摘要 |
PURPOSE:To shorten the length of an object program by using a means which stores previously an external symbol and the length of an instruction that refers to said external symbol. CONSTITUTION:The statement of a source program is translated in the following procedure. That is, it is decided whether said statement has reference to an external symbol or not (S1). If so, this external symbol name is used as a key to retrieve an external symbol information table to obtain a short flag (S2). This short flag shows whether the external symbol is defined by a short address or a long address. Then it is decided whether the short flag is turned on or not (S3). If so, the short flag is converted into a short instruction (S4). If not, the short flag is converted into a long instruction (S5). In such a way, a short address can be translated into a short instruction in terms of reference of an external symbol and the size of an object program can be reduced.
|