Compiler - CI/CD用語集の定義
compilerはソースコードをmachine codeやbytecodeのような低レベルのターゲットへ翻訳し、実行の前のbuildステップとして動作します。
compilerは、ある言語(C、Go、TypeScriptなど)で書かれたソースコードを、machine code、bytecode、または別の言語のような低レベルのターゲットへ翻訳するプログラムです。コンパイルは、プログラムが実行される前の独立したbuildステップとして行われます。
compilerは、ある言語(C、Go、TypeScriptなど)で書かれたソースコードを、machine code、bytecode、または別の言語のような低レベルのターゲットへ翻訳するプログラムです。コンパイルは、プログラムが実行される前の独立したbuildステップとして行われます。
CIにおいて
コンパイルのステップは、テストが実行される前に構文エラーや型エラーがそこで現れるため、通常pipelineが最初に失敗する場所です。compilerの出力をcache(たとえば ccache やインクリメンタルなbuild cache)することは、最大級のCI高速化の1つです。
compiler vs interpreter
compilerは前もって出力artifactを生成します。interpreterは実行時にソースコードを直接読み取って実行します。多くのtoolchainは両方を組み合わせ、bytecodeへコンパイルしてinterpreterがそれを実行します。
関連ガイド
Interpreter - CI/CD Glossary DefinitionInterpreter: An interpreter is a program that reads source code (or an intermediate form) and executes it dir…
Bytecode - CI/CD Glossary DefinitionBytecode: Bytecode is a compact, platform-independent instruction set produced by a compiler and executed by…
Compiler Flag - CI/CD Glossary DefinitionCompiler Flag: A compiler flag is an option passed directly to the compiler that changes how it processes sou…
Transpiler - CI/CD Glossary DefinitionTranspiler: A transpiler (source-to-source compiler) translates code from one high-level language to another…