The compiler. Compiler is a translator program that converts high-level language program into machine language. ... The resulting object code produced by the compiler is incomplete. It lacks actual memory addresses of functions and data variables defined elsewhere.
Does compiler allocate memory?
When a variable is declared compiler automatically allocates memory for it. This is known as compile time memory allocation or static memory allocation. Memory can be allocated for data variables after the program begins execution. This mechanism is known as runtime memory allocation or dynamic memory allocation.
What is computer compiler?
Compiler, computer software that translates (compiles) source code written in a high-level language (e.g., C++) into a set of machine-language instructions that can be understood by a digital computer's CPU. Compilers are very large programs, with error-checking and other abilities.