View example sentences, synonyms and word forms for Subprogram.

Subprogram

Subprogram | Subprograms

Subprogram meaning

A program contained within a larger program

Example sentences (6)

The Betty compiler, for example, treats every possible straight line of instructions as a subprogram, and if a 'p' instruction alters that subprogram, that subprogram is recompiled.

As much as Br94.4 million was spent on the subprogram designed to encourage the use of local fuel and energy resources, including renewable energy sources.

For example, the subprogram in Euclid's algorithm to compute the remainder would execute much faster if the programmer had a " modulus " instruction available rather than just subtraction (or worse: just Minsky's "decrement").

From a code execution point of view, yielding from a coroutine is closer to structured programming than returning from a subroutine, as the subprogram has not actually terminated, and will continue when called again – it is not an early exit.

It is very rare for subprograms to allow entry to an arbitrary position in the subprogram, as in this case the program state (such as variable values) is uninitialized or ambiguous, and this is very similar to a goto.

One unusual aspect of the VAX instruction set is the presence of register masks citation at the start of each subprogram.