Patent ID: 7325230
Filing Date: 2008-01-29
Classification: G06F

Abstract:
1. A system for compiling source programs into machine language programs, comprising: a data type information processing module configured to analyze a definition statement of a fixed-point data type in a source program, acquire data type information of the fixed-point data type, including at least one of a type number, a data type, a sign, a data size, a number of bits in an integral part and fractional part; a type-information storage unit configured to store the data type information; a variable information processing module configured to analyze a variable declaration statement of the fixed-point data type, acquire variable information including a variable name and the type number as an analysis result; a variable storage unit configured to store the variable information, each variable name being indexed by the type number and being linked to the data type information stored in the type-information storage unit; and a code generating module configured to read arithmetic expression data including the variable in the source program, acquire the type number corresponding to the variable from the variable storage unit, acquire the data type information corresponding to the type number from the type-information storage unit, and convert the arithmetic expression data including the data type information into machine language of the function calling instruction or the fixed point arithmetic instruction installed in a processor.