top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

Compiler: What are all actions performed by compiler to convent high level program into low level ?

0 votes
60 views
Compiler: What are all actions performed by compiler to convent high level program into low level ?
posted Jun 28, 2014 by Rupam

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

I have hands on with gcc compiler.
As per my knowledge, each compiler performs following actions:
1. Pre-processing
2. Compiling
4. Assembling
3. Linking

Prep-processor expands your .c file with the content of header files and also based on the defined flags.
Compiler take that as an input file and does the following.
1. Syntax Analysis
2. Semantic Analysis
3. Intermediate code generation
4. Code optimization
5. Code generation

The final output of compiling step is assembly code.
Assembler take assembly code as input and generate object code and then linker links all the object code files and generates executable file.

Please correct me if I missed any steps or stated wrongly.

answer Jun 28, 2014 by Ganesh
Thanks Ganesh. Do you have any idea about creation of symbol table ?
Similar Questions
+2 votes

What steps are performed by a compiler and how many types of compilers are present and used frequently ?

0 votes

I am looking for detailed description of optimization flags that are provided by GCC compiler ?

0 votes

While reading shared library and PLT (Procedure Linkage Table) I came under a term Trampolines arrangement.

can any one share some info on it ?

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...