answersLogoWhite

0

In general a compiler will go through a few steps:

# Lexical analysis - making sure all the symbols in the source code are legal, and turning them into "tokens" for the next step.

# Syntactic analysis - analyze the tokens, ensuring they follow the rules of the language grammar and parsing them into some form of syntax tree. # Code generation - uses the syntax tree to create some form of intermediate language; oftentimes into assembly instructions, or a unique assembly-like language. # Code optimization - may or may not perform optimization on the intermediate language before translating it into executable code. Of course the true process of compilation is almost always much more complex than this, and may involve many more steps.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is compilation in c plus plus?

Compilation is the process of translating source files into object files.


Does compilation is a fast process?

If your program is short then yes.


How opcodes are generated?

Opcodes are generated during the compilation process of programming languages. They are the machine-level instructions that represent the operations to be performed by the computer's processor. The compiler translates high-level code into a series of opcodes that can be understood and executed by the hardware.


What are the three general methods in implementing a programming language?

1- Compilation 2- Pure Interpretation 3- Hybrid Implementation System


Describe types of table generated in the process of compilation?

Compilation in general is split into roughly 5 stages: Preprocessing, Parsing, Translation, Assembling, and Linking.


What is the difference between debugging and programming?

Programming is the process of creating code. Debugging is the process of fixing problems in existing code.


In the Planning Programming Budgeting and Execution (PPBE) process one result of the programming activities is the?

POM


What is the process of converting a program to machine language called?

Binary, executable or object code


The process of translating a task into a series of commands that a computer will use to perform a task?

Multiply matrices


When using the derivative classification concept of compilation?

When using the derivative classification concept of compilation you must place a clearly worded explanation of the basis for classification by compilation on the face of the document or include it in the text.


When two pieces of CUI or other unclassified information are poted on line together and results in disclosure of classified information?

Declassification


What is IL?

IL stands for Intermediate language. It is an object-oriented programming language that is used by compilers for the .NET Framework before static or dynamic compilation to machine code.