Noun
subprogram (plural subprograms)
(computing) A program contained within a larger program
Hypernym: program
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. Source: Internet
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"). Source: Internet
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. Source: Internet
One unusual aspect of the VAX instruction set is the presence of register masks citation at the start of each subprogram. Source: Internet
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. Source: Internet