Browse Prior Art Database

Assembler Compiler Facility for Integrated User Written Preprocessor

IP.com Disclosure Number: IPCOM000080617D
Original Publication Date: 1974-Jan-01
Included in the Prior Art Database: 2005-Feb-27
Document File: 2 page(s) / 31K

Publishing Venue

IBM

Related People

Dunne, WL: AUTHOR [+2]

Abstract

Assemblers or compilers are provided with a facility allowing a user written intervening phase, between the input and final phases of an assembler or compiler. This additional phase permits monitoring and optionally altering input records of a program before assembling or compiling. After existing initial compiler or assembler phases have read an input record, and in the case of a compiler, have reduced the input phase to more easily processable form, the preprocessor phase is invoked, avoiding the need for two input passes while providing the normal functions of a preprocessor.

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 52% of the total text.

Page 1 of 2

Assembler Compiler Facility for Integrated User Written Preprocessor

Assemblers or compilers are provided with a facility allowing a user written intervening phase, between the input and final phases of an assembler or compiler. This additional phase permits monitoring and optionally altering input records of a program before assembling or compiling. After existing initial compiler or assembler phases have read an input record, and in the case of a compiler, have reduced the input phase to more easily processable form, the preprocessor phase is invoked, avoiding the need for two input passes while providing the normal functions of a preprocessor.

A user-written preprocessor is a program which reads the input records intended for a compiler (e.g.: FORTRAN, PL/1) or assembler, does some user defined processing and passes the records intact or modified on to the compiler or assembler. The functions of such preprocessors include (1) validation of input records against standards, (2) production of auxiliary reports or statistics, (3) alteration of particular input records, or (4) substitution of one or more compiler or assembler statements for particular input records. Prior preprocessors read each input card or record in its original form, performed the desired function and optionally produced an altered input data set. Then the compiler or assembler read each input record again, processed it to an intermediate form such as Polish notation in the case of a compiler, and then produced the normal executable program in absolute or relocatable form.

The proposed method provides a facility within the compiler or assembler, so that after it reads each input record and translates it to the intermediate form, it passes con...