Learn Programming Fundamentals
2 Variables Data Types
3 Conditional Structures
4 Strings
5 Arrays
6 Objects
8 Functions
A compiler is a software tool that translates source code written in a high-level programming language into machine code or executable code that a computer can understand and execute directly. The process of translation performed by a compiler is known as compilation.
In the image above, the program file contains code that is passed to the compiler. The compiler then translates this code into a binary file, creating an executable file that the computer can run. Upon running the program, it generates the specified output message.