Browse Prior Art Database

Saving Data Processor Execution Time Through the Use of Equates for a Plurality of Condition Statements

IP.com Disclosure Number: IPCOM000041600D
Original Publication Date: 1984-Feb-01
Included in the Prior Art Database: 2005-Feb-02
Document File: 1 page(s) / 11K

Publishing Venue

IBM

Related People

Allen, WH: AUTHOR [+4]

Abstract

A considerable amount of execution time in the data processing system is saved as well as reducing the number of required bytes by merging a plurality of condition or "If" statements into a single statement through the use of an "Equate". This allows the programmer to combine all conditional bits into a single byte and then to check only against that single byte. Since each condition requires a definitive amount of execution time, by combining two or more of such statements, execution time is reduced. The programmer, through the use of this expedient, can save on both required bytes and execution time. The basic idea is to combine several bit checks into a single statement. Less statements require less time in checking and obviously less bytes used.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 100% of the total text.

Page 1 of 1

Saving Data Processor Execution Time Through the Use of Equates for a Plurality of Condition Statements

A considerable amount of execution time in the data processing system is saved as well as reducing the number of required bytes by merging a plurality of condition or "If" statements into a single statement through the use of an "Equate". This allows the programmer to combine all conditional bits into a single byte and then to check only against that single byte. Since each condition requires a definitive amount of execution time, by combining two or more of such statements, execution time is reduced. The programmer, through the use of this expedient, can save on both required bytes and execution time. The basic idea is to combine several bit checks into a single statement. Less statements require less time in checking and obviously less bytes used. In order to benefit from this idea, the programmer must arrange his various bits together through an Equate statement. This statement does not take up time and space, but simply allows the program to associate variables in groups. By using the Equate to associate bits together from a byte in memory, we make new information available that can be checked with only one "If" statement instead of several.

1