Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

pdfcrowd.com open in browser PRO version Are you a developer?

Try out the HTML to PDF API


Sunday, February 26, 2012
Bank IT Officers, Compilers, Computers for IT Officers, IBPS IT Officers, IT Officers, IT Officers Exam
T
sponsored links
Search your Topic HERE....
Search
The Phases of Compiler
here are several Phases in compilers are
there. Those are,
1. Lexical Analyser : Performs Lexical
Analysis
2. Syntax Analyser : Performs Syntax Analysis
3. Semantic Analyser : Performs Semantic
Analysis
Menu
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API
4. Intermediate Code Generator : Performs
Intermediate Code Generation
5. Code Optimizer : Performs Code Optimization
6. Code Generator : Generates Target Code
The Symbol Table is a Data Structure which is useful to store the identifiers in the program.
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API
The Error Handler is useful in Detecting and Reporting the errors.
These two are useful from the starting to the ending of the conversion. ( I mean from the starting
phase to the ending phase).
NOTE : We can group these phases into two parts..
Analysis : In which the compiler ANALYZES the given program. For this, the compiler SCANS
and DIVIDES the program into parts. The first THREE phases comes under this category
(shortcut : Check the names, if you can find the terms Analysis or Analiser, then that phase
comes under the ANALYSIS category
Synthesis : In which the compiler JOINS the parts of the divided program and makes the
target program. (The last two phases comes under this category)
Now lets have a look at the functionalists of all these phases.
Lexical Analysis : It is nothing but analyzing the LEXEMs (tokens), in this phase, the compiler
scans the entire program and pics the tokens and groups them.
Syntax Analysis : Syntax is nothing but the structure. It is nothing but to Analyze the structure of
the program (whether it is correct or not)
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API
Semantic Analysis : In this the compiler checks the MEANING of the program.
(Note : The above two process will execute simultaneously, so in some books they combine these
two names and call the process as Syntax and Semantic Analysis)
Intermediate Code Generation : After scanning the program, the compiler generates an
intermediate code (which is neither High level code nor Low level code, which looks like the
Microprocessor Code)
Note : Most of the compilers generates the TAC (Three Address Code) as the Intermediate Code.
It contains, maximum 3 variable, so we call it as the Three Address Code. (note : we can convert
any problem into this TAC form).
it just look like, Temp1 = Temp2 + Temp3 (temporary variables)
or Temp2 = Id + Temp4 etc,
Code Optimization : It helps to improve the Intermediate Code. It make assure that the target
code will run EFFICIENTLY in LESS TIME ( i mean, it should give the desired output in less amount
of time)
Code Generation : It is the final phase. It generates the relocatable machine code or assembly
code. It takes care about the target machine and where to store the variables in the target
machine. Yea of course, it takes care about the ORDER of the instruction execution too.
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API
Newer Post Older Post
machine. Yea of course, it takes care about the ORDER of the instruction execution too.
That's all for now Friends.. Happy Reading..
sponsored links
Home
Want to share anythi ng wi th us ?
You can reach us at
Gr8AmbitionZ @ Gmail.com
Connect with US
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API
CD & Money Market Rates
bankrate.com
Compare CD Rates From Top Banks.
Interest Calculator & Savings Tips.
ITT Tech - Official Site
Employee Relations
System
Smarter Concept Testing
5.75% High Yield CD
No GRE Graduate Schools
Apply for Disability
Capital One Credit Cards
Interview Answers "Trick"
photography school
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API
Popular Posts
IBPS PO IV Online Exam 2014 Special
Reviews Of IBPS PO IV Online Exam Dated 19th October 2014 Review Shared By Siddhartha Singh Reviews
Shared By Anjali Singh And Ankit Go...
Reviews Of Today's (18th October 2014) IBPS PO 4 Online Exam - Morning Shift
Review Shared By Bhavya Hi Friends, I Am Bhavya . Today ( 18-10-2014 ) I Had My IBPS PO 4 Online Exam
(Morning Session). Here Is My Ver...
Current Affairs 2014
F Riends, Here You Can Get Complete Current Affairs For All Competitive Exams Like Banking, SSC, PSC, UPSC,
RRB Etc. Every Month, Our Ex...
SSC CGL 2014 Study Materials
D Ear SSC CGL 2014 Aspirants, This Post Is For You. Here You Can Get Complete Study Materials For The
Upcoming SSC CGL Exam 2014 . We Hav...
IBPS PO IV Online Exam Reviews Dated 18th October 2014
Review Shared By Ramkumar Hi Friends, I Am Ramkumar From Chennai . I Have Planned My Time Before
Starting The Exam. My Target ...
New India Assurance Company Ltd Recruitment Of Assistants 2014 - 1536 Posts
F Riends, The New India Assurance Company Ltd, One Of The Leading Public Sector General Insurance
Companies And Wholly Owned By Governmen...
photography school
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API
IBPS CWE PO 19.10.2014 Morning Shift Review
H Ello I Am Siddhartha Singh From Chamba, Himachal Pradesh . I Gave My Exam Today At Kangra, Himachal
Pradesh. The Exam Was Of Typic...
Experiences Of IBPS PO IV 19-10-2014
Review Shared By Anjali Singh Hi I Am Anjali Singh From Ghaziabad ( UP ). The Exam Was Overall Difficult.
Pattern Was Same As Previous ...
General Awareness Online Practice Tests For SSC CGL 2014
Development Of A Country Can Generally Be Determined By Its Per Capita Income, Health Status Of People
And __________________ Its Averag...
General Awareness Practice Test For IBPS POs And Clerks Online Exams 2014 - Set 10
The World Wild Life Day Is Observed On ? 28th February 1st March 2nd March 3rd March None Of These
Joachim Gauck, Who Visited ...
This Blog is Copyright Protected
2014 Gr8AmbitionZ All Rights Reserved. Designed By Gr8AmbitionZ Team.

You might also like