Difference Between Compile Time and Run Time

Difference Between Compile Time and Run Time

3. Compile Time

We use high-level programming languages such as Java to write a program.  The instructions or source code written using high-level language is required to get converted to machine code for a computer to understand. During compile time, the source code is translated to a byte code like from .java to .class.  During compile time the compiler check for the syntax, semantic, and type of the code.

3.1. Inputs and Outputs

Inputs and outputs during compile time are the following:

3.2.  Errors

During compile time errors occur because of syntax and semantic. The syntax error occurs because of the wrong syntax of the written code. Semantic errors occur in reference to variable, function, type declarations and type