Compiler system compiling method, and storage medium for storing compiling program
AssigneeFujitsu Limited
InventorHidetoshi Iwashita
Life of this patent
Estimating the term…
Abstract
A compiler has a detection unit, a conversion unit, and a expansion unit. The detection unit detects a predetermined target from an input source program. The conversion unit converts the target detected by the detection unit into a procedure call. The expansion unit generates an online code describing a definition of a procedure to be called by the procedure call obtained by the detection unit. The compiler outputs a program in which the target detected by the detection unit is replaced with a procedure call, and an online code corresponding to the procedure call.
Claims11
A compiler system for compiling a first program into a second program, comprising:
- a converter converting a part of the first program into a procedure call and generating the second program including the procedure call;
- a generator generating an expansion code describing a definition of a procedure to be called by the procedure call;
- and
- an outputting unit outputting the second program and the expansion code generated by said generator, and
- wherein the procedure call in the second program is expanded outside the second program and to be outputted as the expansion code.
A compiler system for receiving a first file containing one or more programs, compiling the one or more programs, and outputting a second file containing the one or more compiled programs, comprising:
- a detector detecting a predetermined particular pattern from one or more programs contained in the first file;
- a converter compiling the one or more programs contained in the first file by converting the pattern detected by said detector into a procedure call corresponding to the pattern;
- a generator generating an expansion code describing a definition of a procedure to be called by the procedure call;
- and
- an outputting unit outputting the one or more complied programs compiled by said converter and the expansion code generated by said generator, and
- wherein when said detector detects a plurality of identical patterns from the first file, said converter converts the plurality of patterns into a same procedure call, and the procedure call is expanded outside the one or more complied programs and to be outputted as the expansion code.
A compiler system for receiving a plurality of files each containing one or more programs, and compiling the programs contained in the received files, comprising:
- a detector detecting a predetermined particular pattern from the programs contained in the received files;
- a converter compiling the programs contained in the received files by converting the pattern detected by said detector into a procedure call corresponding to the pattern;
- a generator generating an expansion code describing a definition of a procedure to be called by the procedure call;
- and
- an outputting unit outputting a program compiled by said converter and the expansion code generated by said generator, and
- wherein when said detector detects a plurality of identical patterns from the plurality of received files, said converter converts the plurality of patterns into a same procedure call, and the procedure call is expanded outside the complied program and to be outputted as the expansion code.
A compiler system for compiling a first program into a second program, comprising:
- converting means for converting a part of the first program into a procedure call and generating the second program;
- generating means for generating an expansion code describing a definition of a procedure to be called by the procedure call;
- and
- outputting means for outputting the second program and the expansion code generated by said generating means, and
- wherein the procedure call in the second program is expanded outside the second program and to be outputted as the expansion code.
A method for compiling a first program into a second program, comprising:
- converting a part of the first program into a procedure call and generating the second program including the procedure call;
- generating an expansion code describing a definition of a procedure to be called by the procedure call;
- and
- outputting the second program and the generated expansion code, and
- wherein the procedure call in the second program is expanded outside the second program and to be outputted as the expansion code.
A computer-readable storage medium for storing a program used to direct a computer to compile a first program into a second program, said program comprising:
- a program code for converting a part of the first program into a procedure call and generating the second program including the procedure call;
- a program code for generating an expansion code describing a definition of a procedure to be called by the procedure call;
- and
- a program code for outputting the second program and the generated expansion code, and
- wherein the procedure call in the second program is expanded outside the second program and to be outputted as the expansion code.
A method for compiling a program containing a function, comprising:
- substituting a procedure call for the function;
- generating the program including the procedure call;
- generating expansion code defining a procedure to be called by the procedure call;
- and
- generating a subprogram containing the expansion code outside of the program expanding the procedure call.
Dependencies are inferred from the claim text.