Skip to content
EntityQ1418502· pop 38· linked from 575 articles

手続き型プログラミング

Sign in to save

手続きを順に記述してゆくことでプログラムを構成するプログラミングパラダイム

Described at

Procedural Programming — Definition & Overview • DeepSource

Procedural programming is a programming paradigm built around the idea that programs are sequences of instructions to be executed.

deepsource.com

Procedural programming is a programming paradigm built around the idea that programs are sequences of instructions to be executed. They focus heavily on splitting up programs into named sets of instructions called procedures, analogous to functions. A procedure can store local data that is not accessible from outside the procedure's scope and can also access and modify global data variables. Some of the earliest procedural programming languages were Fortran and ALGOL . Ideas developed in ALGOL are very much relevant and prevalent in modern-day programming languages. Programs are composed of sequences of instructions. Minimal abstraction is present between the code and the machine. Procedures, which are logical blocks consisting of groups of instructions, can be invoked from other places in the code. A procedure can accept arguments and return values to the caller. Additionally, functions can access and modify variables in the global scope. Procedural languages follow structured programming practices and use block-based control flow rather than goto commands.

Excerpt from a page describing this subject · 2,855 chars · not written by Vinony

Wikidata facts

Show 2 more facts
short name
Prosedyrisk
Sources (3)

via Wikidata · CC0

Article · 日本語

手続き型プログラミング(てつづきがたプログラミング、英: Procedural programming)は、手続きの定義と呼び出しをプログラム全体を組み立てる土台にしたプログラミングパラダイムである。手続きは言語によってサブルーチン、関数、メソッドとも呼ばれている。手続きはプログラム全体を区画した部分プログラムでもあり、一定量の計算ステップまたは命令コードのまとまりを、任意の定義名に結び付けて識別化したコードユニットである。手続き型プログラミングは命令型プログラミングの分類に属しており、1958年のFORTRANⅡ、ALGOL、COBOLといった最も初期の高水準言語から導入されている。 手続き(procedure)は、プログラム内のあらゆるポイントから呼び出す(call)ことが可能であり、手続き内の命令コード行の終端に達した時は、その手続きを呼び出したポイントの次のアドレスに制御が移される。これは復帰(return)と呼ばれる。リターン命令で途中位置でも復帰できる。手続きは他の手続き内からの呼び出しの他、自身内からの呼び出しも可能でありこれは再帰(recursive call)と呼ばれる。手続きの呼び出しと復帰は、コンピュータ側が提供するコールスタックまたはスタックフレーム機能の命令アドレス管理によって実現されている。

Abstract from DBpedia / Wikipedia · CC BY-SA

Connections

Categories