Patent ID: 7716655

Claim:
A computer system including a processor for compiling a source program, the system comprising: a storage unit that stores the source program and type information representing data types including a fixed-point type; a detecting unit that obtains the source program from the storage unit and detects a type specifier and an immediate from the obtained source program; a type specifier analyzing unit that analyzes the type specifier and links one of a variable and a function, data type of which is specified by the type specifier, to the type information of the fixed-point type when the type specifier is a floating-point type to store in the storage unit, wherein the type specifier analyzing unit links the variable and the function to the type information of the fixed-point type having a specified size; an immediate analyzing unit that analyzes the immediate and links the immediate to the type information of fixed-point type when the immediate is any one of a decimal number without a postfix and a decimal number with floating-point type postfix to store in the storage unit, wherein the immediate analyzing unit links the immediate to the type information of the fixed-point type having a specified size; and a type information updating unit that updates the type information of the fixed-point type on the basis of redefinition of the number of bits of an integer part and a fractional part in the type information of the fixed-point type.