Langkah 1 dari 128%

Apa Itu Compiler?

Compiler menerjemahkan kode sumber yang ditulis dalam bahasa tingkat tinggi menjadi bahasa tingkat lebih rendah (assembly, bytecode, atau kode mesin). Compiler membaca seluruh program, menganalisisnya, dan menghasilkan output.

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)

Petunjuk

Uji Pemahaman Anda

Apa yang dilakukan compiler?