サブプログラム
「サブプログラム」の英語
「サブプログラム」は英語で subprogram と言います。大きなプログラムの一部として呼び出される処理単位を指し、文脈によっては subroutine や procedure も使われます。
「サブプログラム」の英語の使い分け
主プログラムから呼び出して使う処理単位を指す技術用語です。
コアイメージ
大きなプログラムの中で特定の処理を行い、必要に応じて呼び出される独立した小さなプログラム
英英
A smaller program or routine within a larger program that performs a specific task and can be invoked by the main program.
語源
subprogramは、接頭辞sub-(下位・部分)とprogramが結合してできた語で、より大きなプログラム内の下位の処理単位を指す言葉としてコンピュータ分野で生まれた
コラム
- サブプログラムはメインから呼び出して処理を任せる単位で、言語や文脈によってはsubroutineやprocedureとほぼ同義で使われる
「サブプログラム」のレベル別の例文
- 中学
The subprogram checks the total before printing it.
- 高校・英検2級
The program uses a subroutine to sort records by date automatically.
- TOEIC・ビジネス
The development team tested the subprogram before the software release.
- 日常会話
Can this subprogram handle large files?
「サブプログラム」を英語にするときのよくある間違い
× I did a subprogram.
○ I wrote a subprogram.
プログラムを作る場合は do ではなく write を使います。
× The subprogram is the main program.
○ The subprogram is called by the main program.
subprogram は主プログラムから呼び出される処理単位です。