Ahead-of-Time Compilation (AOT) - CI/CD用語集の定義
AOTコンパイルはbuildの間にネイティブなmachine codeを生成するため、起動が速く、実行時にコンパイルのコストがかかりません。
ahead-of-time (AOT) コンパイルは、プログラムが実行される前のbuildの間に、ソースやbytecodeをネイティブなmachine codeへ翻訳するため、実行時にコンパイルのコストがかかりません。GraalVMのnative imageやGoのbuildはAOTです。
ahead-of-time (AOT) コンパイルは、プログラムが実行される前のbuildの間に、ソースやbytecodeをネイティブなmachine codeへ翻訳するため、実行時にコンパイルのコストがかかりません。GraalVMのnative imageやGoのbuildはAOTです。
CIにおいて
AOTのbuildはpipelineでは遅くなりますが(すべての作業を前もって行うため)、起動が速く自己完結したartifactを生成します。AOTの段階には余分なCI分を見込み、toolchainが対応する場合は中間出力をcacheしましょう。
関連ガイド
Just-in-Time Compilation (JIT) - CI/CD Glossary DefinitionJust-in-Time Compilation (JIT): Just-in-time (JIT) compilation converts bytecode or source to native machine…
Machine Code - CI/CD Glossary DefinitionMachine Code: Machine code is the set of binary instructions a specific CPU executes directly. It is the fina…
Optimization Level - CI/CD Glossary DefinitionOptimization Level: An optimization level is a compiler setting (for example `-O0` through `-O3`, or `-Os` fo…