answersLogoWhite

0


Best Answer

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

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

There are 6 steps

  1. Pre-processor - which replaces macros
  2. Code will be separated from comments
  3. syntax error will be given - types of parsing
  4. compilation - will convert high level language to assembly
  5. assembler - will convert assembly to machine language
  6. linker - will generate final executable.
This answer is:
User Avatar

User Avatar

Wiki User

12y ago

Just read the book about computer concepts and you will know the answer to your question. By anabella solon, Joseph anas, Christy Pedroza and III-ssc Mendeleev...

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is compilation process in programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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.


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 are the three general methods in implementing a programming language?

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


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.


What is the difference between programming and debugging?

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


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.


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

Declassification