0% found this document useful (0 votes)
82 views2 pages

Syllabus

This document provides information about the Compiler Laboratory course offered at Velammal College of Engineering and Technology. The course has 3 contact hours per week and a total of 45 hours. It carries 2 credits and assesses students through continuous assessment and a semester-end exam. The prerequisites are basic knowledge of C and C++ programming. The course objectives are to expose students to compiler writing tools and implement the different phases of a compiler like lexical analysis, syntax analysis, semantic analysis, intermediate code generation, and code optimization. The list of 11 experiments covers implementing a symbol table, lexical and syntax analysis with Lex and Yacc, type checking, control and data flow analysis, code generation, and simple code optimizations. Equipment requirements include standalone desktops

Uploaded by

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

Syllabus

This document provides information about the Compiler Laboratory course offered at Velammal College of Engineering and Technology. The course has 3 contact hours per week and a total of 45 hours. It carries 2 credits and assesses students through continuous assessment and a semester-end exam. The prerequisites are basic knowledge of C and C++ programming. The course objectives are to expose students to compiler writing tools and implement the different phases of a compiler like lexical analysis, syntax analysis, semantic analysis, intermediate code generation, and code optimization. The list of 11 experiments covers implementing a symbol table, lexical and syntax analysis with Lex and Yacc, type checking, control and data flow analysis, code generation, and simple code optimizations. Equipment requirements include standalone desktops

Uploaded by

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

Velammal College of Engineering and Technology, Madurai 625 009

Department of Information Technology


Course Code-Title

IT 6612/Compiler Laboratory

Course
Component

Lab Course

Contact Hours

Lecture

Tutorial

Practical

Total Hours

45

Continuous
Course Assessment
methods
Prerequisite
Courses:
Course Objective

Credit

2
Semester-end assessment
Student Course exit survey

Model Exam
The students should have the basics knowledge on Programming in C and C++.
The student should be made to:
Be exposed to compiler writing tools.
Learn to implement the different Phases of compiler
Be familiar with control flow and data flow analysis
Learn simple optimization techniques

CO1: Implement the different Phases of compiler using tools


Course Outcomes

CO2: Analyze the control flow and data flow of a typical program
CO3: Optimize a given program
CO4: Generate an assembly language program equivalent to a source language program
List of Experiments

1. Implementation of Symbol Table


2. Develop a lexical analyzer to recognize a few patterns in C. (Ex. identifiers, constants, comments, operators
etc.)
3. Implementation of Lexical Analyzer using Lex Tool
4. Generate YACC specification for a few syntactic categories. a) Program to recognize a valid arithmetic
expression that uses operator +, - , * and /. b) Program to recognize a valid variable which starts with a letter
followed by any number of letters or digits. d)Implementation of Calculator using LEX and YACC
5. Convert the BNF rules into Yacc form and write code to generate Abstract Syntax Tree.
6. Implement type checking
7. Implement control flow analysis and Data flow Analysis
8. Implement any one storage allocation strategies (Heap,Stack,Static)
9. Construction of DAG
10. Implement the back end of the compiler which takes the three address code and produces the 8086 assembly
language instructions that can be assembled and run using a 8086 assembler. The target assemblies instructions
can be simple move, add, sub, jump. Also simple addressing modes are used.
11. Implementation of Simple Code Optimization Techniques (Constant Folding, etc.)
Total : 45 Periods

LIST OF EQUIPMENT FOR A BATCH OF 30 STUDENTS: Standalone desktops with C / C++ compiler
and Compiler writing tools 30 Nos. (or) Server with C / C++ compiler and Compiler writing tools supporting
30 terminals or more. LEX and YACC

You might also like