请输入您要查询的字词:

 

单词 subroutine
释义
subroutine

Computer
  • A piece of code that is obeyed ‘out of line’, i.e. control is transferred to the subroutine, and on its completion control reverts to the instruction following the call. (The instruction code of the CPU usually provides subroutine jump and return instructions to facilitate this operation.) A subroutine saves space since it occurs only once in the program, though it may be called from many different places in the program. It also facilitates the construction of large programs since subroutines can be formed into libraries for general use. (The same concept appears in high-level languages as the procedure.)

    In the early days of programming, what is now called a subroutine was known as a closed subroutine. This was in contrast with the open subroutine, which was a piece of code that appeared in several places in a program, and was substituted ‘in line’ by the assembler for each call appearing in the program. The open subroutine was just a convenient shorthand for the programmer: the same facility is now known as a macro.


Internet
  • A section of code which is executed from another section of code. Once the subroutine has been executed, control is returned to the code that executed it.


Electronics and Electrical Engineering
  • See program.


随便看

 

科学参考收录了60776条科技类词条,基本涵盖了常见科技类参考文献及英语词汇的翻译,是科学学习和研究的有利工具。

 

Copyright © 2000-2023 Sciref.net All Rights Reserved
京ICP备2021023879号 更新时间:2024/7/1 15:16:17