How does Compiler Work?

A compiler is like translator who translates from high level language to low level languages.

Basically a compiler takes your input file and translates it to something you’d rather want.

Compiling source code is done in phases. The output of one phase is the input of the next one. Here is a high level view of how it works:

This is a pretty generic architecture for a compiler. Different compilers might have more or less steps, but this should give you an idea of how things typically work.

The C preprocessor is a compiler that converts C source containing #define, #if, etc into C source without them, understandabl eby the “real” C compiler.

Many compilers translate into an intermediate language that is interpreted by the target system. Java and .NET languages are well-known examples

To learn more about Compiler, Programming Language, Web Development.

Join Tririd @ satellite in Ahmedabad.

Tririd develop varioussoftware using latest technologies.

Call us @ 8980010210

Visit us @

Leave a Reply

Your email address will not be published. Required fields are marked *