0% found this document useful (0 votes)
70 views3 pages

CS6612 COMPILER LAB - Reg 2013

This document provides a lecture plan for a Compiler Laboratory course taught in the 6th semester of a B.E. in Computer Science and Engineering program. The course objectives are to expose students to compiler writing tools, implement the phases of a compiler, and learn optimization techniques. Key topics covered include implementing a symbol table, lexical analysis, parsing with Yacc, type checking, control and data flow analysis, code generation, and simple optimizations. Student assessment includes internal tests, mini projects, and an end semester exam. The lecture plan lists 15 topics to be covered across two cycles, along with associated teaching aids like demos and LCD displays.

Uploaded by

addssdfa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views3 pages

CS6612 COMPILER LAB - Reg 2013

This document provides a lecture plan for a Compiler Laboratory course taught in the 6th semester of a B.E. in Computer Science and Engineering program. The course objectives are to expose students to compiler writing tools, implement the phases of a compiler, and learn optimization techniques. Key topics covered include implementing a symbol table, lexical analysis, parsing with Yacc, type checking, control and data flow analysis, code generation, and simple optimizations. Student assessment includes internal tests, mini projects, and an end semester exam. The lecture plan lists 15 topics to be covered across two cycles, along with associated teaching aids like demos and LCD displays.

Uploaded by

addssdfa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

ANAND INSTITUTE OF HIGHER TECHNOLOGY

KAZHIPATTUR – 603 103

Department of Computer Science and Engineering

Academic Year: 2015-16 (Even Semester)

Lecture Plan

Course Code & Title: CS6612/ Compiler Laboratory          

Semester & Branch: VI Semester B.E. Computer Science and Engineering/B Section

Name of the Faculty member: N.Vasudevan

Designation & Department: Assistant Professor & CSE

Course Objectives:
The student should be made to
1. Be exposed to compiler writing tools.
2. Learn to implement the different Phases of compiler
3. Be familiar with control flow and data flow analysis
4. Learn simple optimization techniques

Course Outcomes:
At the end of the course, the student should be able to
1. Implement the different Phases of compiler using tools
2. Analyze the control flow and data flow of a typical program
3. Optimize a given program
4. Generate an assembly language program equivalent to a source language program

Assessment Methods followed:


1. Internal Tests (Model Tests) are conducted to assess continuous learning.
2. Mini Projects are given to enhance the experiential learning.
3. End Semester Examination is conducted to assess overall learning by students.
Lecture Date Topic(s) to be covered Teaching aids
No. (Demo/ LCD)

Cycle 1
Implementation of symbol table.
1 Demo
Develop a lexical analyzer to recognize a
few patterns in c (ex. Identifers, Demo
2
constants, comments, operators etc.)

Implementation of lexical analyzer using Demo


3
lex tool.
Generate yacc specification for a few
syntatic categories.
    a) Program to recognize a valid
arithmetic expression that uses
operator +, -, * and /.
4     b) Program to recognize a valid Demo
variable which starts with a letter
followed by any number of letter or
digits.
    c) Implementation of calculator using
lex and yacc.
Convert the bnf rules into yacc form and
write code to generate abstract syntax Demo
5
tree.

6 Implement type checking Demo

Implement control flow analysis and data Demo


7
flow analysis.
9 Model Lab -I

Cycle 2
Implement any one storage allocation
10 strategies(heap, stack, static) Demo

Construction of DAG Demo


11

Implement the back end of the compiler


which takes the three address code and
produces the 8086nassembly language
instructions 
      that can be assembled and run using a LCD
12
8086 assembler. The target assembly
instructions can be simple move , add,
      sub, jump. Also simple addressing
modes are used.

Implementation of simple code


13 optimization techniques (constant folding. Demo
etc.)
14 Model Lab - II
Demo -
15 Mini project Lexical analyzer Experiential
Prepared By: Approved by:

N.Vasudevan Dr.S.Roselin Mary

(Name & Signature of Faculty member) (Name & Signature of HOD)

You might also like