For faster navigation, this Iframe is preloading the Wikiwand page for コンパイル時.

コンパイル時

コンパイル時 (: compile time)とは、計算機科学では、コンパイラによって実行される操作("コンパイル時操作")、正常にコンパイルされるためにソースコードが満たす必要のあるプログラミング言語要件("コンパイル時要件")、またはコンパイル中に推論できるプログラムのプロパティのいずれかを指す。コンパイル時は、プログラミングコードがマシンコード(バイナリコード)に変換される段階のことで、通常はランタイムの前に発生する。

コンパイル時/アーリーバインディングvs実行時

[編集]

実行モデルは、コンパイル時の段階で決定される。実行と割り当ての方法は、実行時に設定され、実行時の動的性に基づいている。

概要

[編集]

コンパイル時に実行される操作には、通常、構文解析、さまざまな種類のセマンティック解析(たとえば、型チェックテンプレートのインスタンス化)、およびコード生成が含まれる。

プログラミング言語の定義は通常、正常にコンパイルされるためにソースコードが満たさなければならないコンパイル時の要件を指定する。たとえば、言語では、型と変数に必要な記憶域の大きさを推定できる。

コンパイル時に推論できるプログラムのプロパティには、範囲チェック(たとえば、配列インデックスが配列の境界を超えないことの確認)、並行言語でデッドロックしないこと、またはタイミング(たとえば、コードのシーケンスが割り当てられた時間以上かからないことの検証)が含まれる。

コンパイル時は、リンク時(1つ以上のコンパイル済みファイルの出力が結合される段階)およびランタイムプログラム実行される段階)の前に発生する。一部のプログラミング言語では、実行時にコンパイルとリンクを実行する必要がある。コンパイル時とリンク時の間にはトレードオフがあり、多くのコンパイル時の操作は、余分な実行時間を発生させることなくリンク時まで延期できる。

関連項目

[編集]
{{bottomLinkPreText}} {{bottomLinkText}}
コンパイル時
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?