Template based facility for formatting compiler output
First Claim
1. A system for altering a format of an output file from a compiler comprising:
- a template definition file, interchangeable with other template definition files, for specifying a desired format for a section of the output file, the template definition file including an ordered set of symbol names arranged according to the desired format; and
a template facility using the template definition file and output file from the compiler as input for formatting output from the compiler according to the template definition file to produce the output file section in the desired format,wherein the template facility outputs the section by retrieving symbol values from a symbol table and storing the symbol values in locations in the output file according to a position of the corresponding symbol names in the ordered set.
0 Assignments
0 Petitions
Accused Products
Abstract
The format of an output file from a compiler is altered using two new objects, a template definition file for specifying the desired formats for the sections of the output file and a template facility for formatting output from the compiler according to the template definition file. The desired formats are specified by patterned sets of symbol names in the template definition file. A symbol table which is maintained by the template facility stores a set of symbol values corresponding to the symbol names. The template facility outputs the section by placing symbol values from the symbol table in the output file according to the positions of the corresponding symbol names in the patterned sets of symbol names.
42 Citations
17 Claims
-
1. A system for altering a format of an output file from a compiler comprising:
-
a template definition file, interchangeable with other template definition files, for specifying a desired format for a section of the output file, the template definition file including an ordered set of symbol names arranged according to the desired format; and a template facility using the template definition file and output file from the compiler as input for formatting output from the compiler according to the template definition file to produce the output file section in the desired format, wherein the template facility outputs the section by retrieving symbol values from a symbol table and storing the symbol values in locations in the output file according to a position of the corresponding symbol names in the ordered set. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A method for altering a format of an output file from a compiler comprising:
-
specifying a desired format for a section of the output file in a template definition file interchangeable with other template definition files, the template definition file including an ordered set of symbol names arranged according to the desired format; and formatting output from the compiler according to the template definition file in a template facility which uses the template definition file and output file as input and formats the output file section in the desired format, wherein the formatting step outputs the section by retrieving symbol values from the symbol table and storing the symbol values in locations in the output file according to a position of the corresponding symbol names in the ordered set. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A computer program product in a computer memory for altering a format of an output file from a compiler comprising:
-
the compiler which compiles a source module into the output file; a template definition file, interchangeable with other template definition files, for specifying a desired format for a section of the output file, the template definition file including an ordered set of symbol names arranged according to the desired format; and a template facility having the template definition file and the output file from the compiler as input for formatting output from the compiler according the template definition file to produce the output file section in the desired format, wherein the template facility outputs the section by retrieving symbol values from the symbol table and storing the symbol values in locations in the output file according to a position of the corresponding symbol names in the ordered set. - View Dependent Claims (12, 13, 14)
-
-
15. A system for converting a source code module to an object code module in a desired format comprising:
-
a compiler in a system memory for converting the source module into an intermediate code module in a first format; an interchangeable template definition file in the system memory for specifying the desired format, the template definition file in a human readable arrangement of symbol names; an emitter in the system memory having the template definition file and intermediate code module as input for converting the intermediate code module into the object code module, the emitter containing a template facility which refers to the arrangement of symbol names to produce the object code module in the desired format; and a symbol table in which symbol values corresponding to the symbol names are stored by the emitter and from which the symbol values are retrieved by the template facility to store in locations in the object code module according to positions of corresponding symbol names in the template definition file. - View Dependent Claims (16, 17)
-
Specification