ステップ 1/128%

What Is a Compiler?

コンパイラは、高水準言語で書かれたソースコードを、より低水準の言語(アセンブリ、バイトコード、機械語)に翻訳します。プログラム全体を読み込み、解析して、出力を生成します。

Compiler — translates entire program before execution
Interpreter — executes program line by line

Examples:

  • Compilers: GCC (C/C++), rustc, javac
  • Interpreters: Python, Ruby, Bash
  • Hybrid: Java (compile to bytecode, JVM interprets/JITs)

ヒント

理解度チェック

What does a compiler do?