Abstract
A subroutine is a subprogram that may be reached from more than one place in the main program. For example, if a multiplication routine is needed several times during the execution of a main program, then the multiplication routine is better written as a subroutine which is ‘called’ when needed by the main program. In this way, the programmer makes efficient use of the memory of the computer.
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Copyright information
© 1985 Noel M. Morris
About this chapter
Cite this chapter
Morris, N.M. (1985). Subroutines and the Stack. In: Microelectronic and Microprocessor-based Systems. Palgrave, London. https://doi.org/10.1007/978-1-349-06978-1_11
Download citation
DOI: https://doi.org/10.1007/978-1-349-06978-1_11
Publisher Name: Palgrave, London
Print ISBN: 978-0-333-36190-0
Online ISBN: 978-1-349-06978-1
eBook Packages: Computer ScienceComputer Science (R0)