Method and system for controlling the generation of program statements

a program statement and program technology, applied in the field of macro instructions, can solve the problems of inability to generate statements that could affect the analysis of the structure and content of a macro definition by assembler, inability to provide further control over the sequence of generated statements, and inability to create arbitrary forms of records. to achieve the effect of enhancing macro processing

a program statement and program technology, applied in the field of macro instructions, can solve the problems of inability to generate statements that could affect the analysis of the structure and content of a macro definition by assembler, inability to provide further control over the sequence of generated statements, and inability to create arbitrary forms of records. to achieve the effect of enhancing macro processing

US6263493B1Inactive Publication Date: 2001-07-17IBM CORP

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for controlling the generation of program statements
  • Method and system for controlling the generation of program statements
  • Method and system for controlling the generation of program statements

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

To address the shortcomings of current macro processing techniques, preferred embodiments of the present invention disclose a method of processing program statements. An assembler program is provided a plurality of statements and processes the statements in the macro. For each statement the assembler program determines whether the processed statement is a buffering directive including a statement operand. If the assembler program determines that the processed statement is a buffering directive, the assembler program writes the statement operand of the buffering directive into a memory area. Otherwise, the assembler program generates the processed statement into a data stream. The assembler program generates the statements stored in the memory area into the data stream after processing the statements.

In further embodiments, the plurality of statements are associated with a macro and the statements comprise a macro call. The assembler program processes the macro call and provides a de...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Disclosed is a system for processing program statements, such as statements included in a macro. An assembler program is provided a plurality of statements with an input file. The assembler program processes the statements. For each statement the assembler program determines whether the processed statement is a buffering directive including a statement operand. If the assembler program determines that the processed statement is a buffering directive, the assembler program writes the statement operand of the buffering directive into a memory area. Otherwise, the assembler program generates the processed statement into a data stream. The assembler program generates the statements stored in the memory area into the data stream after processing the statements associated with the macro.

Description

1. Field of the InventionThe present invention relates to a method for processing macro instructions and, in preferred embodiments, a method for altering the manner in which macro instructions are generated and processed by an assembler program.2. Description of the Related ArtAssembly languages are the mixture of two distinct languages, ordinary assembly language and the conditional assembly and macro language. The ordinary assembly language is the language of the machine and assembler instruction statements that the assembler translates into machine language. The conditional assembly language is used primarily in macro instructions. Macro instructions are invoked during assembly to perform useful functions. The conditional assembly language consists of conditional statements, variable symbols, and macros that the assembler interprets and executes at assembly time to tailor, select, and create sequences of statements.The conditional assembly language includes two classes of symbols...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
17 Jul 2001
Publication
US6263493B1
IPC
G06F9/45
CPC
G06F8/423
Inventors
EHRMAN, JOHN ROBERT