Patent ID: 7478363

Claim:
An object program generating method being able to perform block floating compiling process by using a Central Processing Unit (CPU) for translating a given source program into an object program by performing the block floating compiling process when the source program contains computing expressions which are written using block floating variables of a Block Floating data type, characterized in that: each of the block floating variables constitutes a data block containing one or more data items and the data block is a variable which represents a data structure containing a block scale factor of the data block, the block floating compiling process by using the CPU comprising: a computing expression detecting step of detecting the computing expressions in the source program input from the storage device by detecting and outputting as detection results: operators in the expressions, the data type of input operand for the operators, and the data type of output operand for the operators; a computing expression expanding step of expanding the computing expressions detected in the computing expression detecting step into predetermined instruction codes, the expanding step based upon: the detected operators, and data type information detected from the input operand for the operators in the detection results; an instruction code conversion step of converting the instruction codes produced in the computing expression expanding step into the object program, by converting and outputting: instruction codes which specify a process of feeding block floating type data into a computing unit for performing a shifting process, if the input operand is block floating type data, based on at least one of the operational block scale factor and the block scale factor of an input operand, and instruction codes which specify a process of calculating, if the input operand contain block floating type data, an operational block scale factor from the block scale factors of input data blocks.