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

Inactive Publication Date: 2001-07-17
IBM CORP
View PDF3 Cites 42 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Benefits of technology

Accordingly, preferred embodiments provide a mechanism to enhance macro processing. Certain statements that need to be parameterized may be buffered by the preferred embodiment AWRITE instruction in buffer 30 ...

Problems solved by technology

One limitation of this optimized encoding technique is that arbitrary forms of records cannot be created.
Another limitation is that statements that could affect the assembler's analysis of the structure and content of a macro definition cannot be generated by substitution; this limitation encompasses almost all conditional assembly statements.
There is no mechanism for providing further controls over the sequence of generated statements.
One limitation of the nested definition technique is that all statements of the inner macro definition are shielded from actions of the enclosing macro.
This means that variables defined and used within an inner macro definition cannot be manipulated within the outer macro using the standard techniques of parameterization and selection.
Moreover, macros containing nested definitions cannot generate partial nested definitions.
This is because the st...

Method used

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
View more

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
no application Login to view more
IPC IPC(8): G06F9/45
CPCG06F8/423
Inventor EHRMAN, JOHN ROBERT
Owner IBM CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products