Compilation ensures that the source code adheres to the Syntax. If any code does not follow Syntax, a compilation error will be generated. Execution is the process of running a.exe file for Windows or a.extension file for a different operating system.
Before loading the programme into memory, compile-time address binding is performed. At the time of programme execution, address binding is performed. The instructions are converted to absolute addresses. It aids in the execution.
Compilation is the transformation of source code into object code. It is accomplished with the assistance of the compiler. The compiler checks the source code for syntactical and structural faults, and then creates the object code if the source code is error-free.
A compiler takes the source code of a programme and turns it to a machine language module (called an object file). This object file is combined with other previously built object files (in particular run-time modules) by another specialised programme called a linker to create an executable file.