Patent ID: 7657878

Claim:
A memory configured to store a program, which when executed by a computer, causes the computer to perform a method of compiling for generating object code from an input source program, the object code including user-defined machine instructions defined by a user, the method comprising: analyzing, by a syntax analyzer, whether or not an operation described in the source program conforms to grammatical rules, outputting, by the syntax analyzer, a result of the analysis as an syntax-analysis result, and associating, by the syntax analyzer, the details of the processing operations with the user-defined machine instructions and storing the associated details of the processing operations and user-defined machine instructions in an intrinsic function definition database when detecting that the combination of the instructions is a function definition of the intrinsic function which defines the details of the processing operations associated so as to be converted into the user-defined machine instruction; generating, by a code generator, multiple machine instructions from the source program based on the syntax-analysis result of the syntax analyzer; and replacing, by a code optimizer, the multiple machine instructions by a user-defined machine instruction stored in the intrinsic function definition database in the case where the multiple machine instructions generated from the input source program by the code generator are determined to exactly match the machine instructions generated from the details of an intrinsic function definition body of the user-defined machine instruction, wherein an instruction statement for explicitly calling the intrinsic function which defines aforementioned details of the processing operations is not beforehand described in a body of the input source program since the definition of the intrinsic function is provided independently from the input source program, and the program for compiling generates no object code from the intrinsic function.