Compiler Design and Construction - Syllabus
Embark on a profound academic exploration as you delve into the Compiler Design and Construction course () within the distinguished Tribhuvan university's CSIT department. Aligned with the 2065 Syllabus, this course (CSC-352) seamlessly merges theoretical frameworks with practical sessions, ensuring a comprehensive understanding of the subject. Rigorous assessment based on a 60+20+20 marks system, coupled with a challenging passing threshold of , propels students to strive for excellence, fostering a deeper grasp of the course content.
This 3 credit-hour journey unfolds as a holistic learning experience, bridging theory and application. Beyond theoretical comprehension, students actively engage in practical sessions, acquiring valuable skills for real-world scenarios. Immerse yourself in this well-structured course, where each element, from the course description to interactive sessions, is meticulously crafted to shape a well-rounded and insightful academic experience.
Units
Key Topics
-
Compiler Structure
UN-1.1Analysis and Synthesis Model of Compilation, including different sub-phases within analysis and synthesis phases.
-
Compiler Concepts
UN-1.2Basic concepts related to Compiler, including interpreter, simple One-Pass Compiler, preprocessor, macros, symbol table, and error handler.
-
Search Structures
UN-1.2.1Review of search structures including heaps, balanced trees, and hash tables.
-
Introduction to Knowledge Management
UN-1.1.1This topic introduces the foundations of knowledge management, its multidisciplinary nature, and its cultural and technological aspects.
-
Decision Support Systems
UN-1.1.2This topic covers the phases of decision making, components of decision support systems, and group decision support systems.
-
Challenges in Knowledge Management
UN-1.2.2This topic discusses the key challenges facing the evolution of knowledge management, including security, technology, motivation, and data accuracy.
-
Ethics and Intellectual Property in KM
UN-1.2.3This topic covers the ethics of knowledge management research, intellectual property rights, and the importance of ethical considerations in knowledge management.
Key Topics
-
Lexical Analysis
UN-2.1The process of breaking the source code into a series of tokens. It involves the specification and recognition of tokens, input buffer, and finite automata relevant to compiler construction.
-
Syntax Analysis
UN-2.2The process of analyzing the syntax of the source code. It involves basic parsing techniques, problem of left recursion, left factoring, ambiguous grammar, top-down parsing, bottom-up parsing, and LR parsing.
-
Context-Free Grammar
UN-2.1.1Study of context-free grammar, including parse trees, derivation, and ambiguity. Normal forms of context-free grammar, such as CNF and GNF, are also explored.
-
Regular Grammars
UN-2.1.2Introduction to regular grammars and their properties, including closure properties of context-free languages.
-
Push Down Automata (PDA)
UN-2.2.1Definition and properties of push down automata (PDA), including language of PDA and equivalence with CFGs.
-
Deterministic and Non-deterministic PDA
UN-2.2.2Study of deterministic and non-deterministic push down automata, including their properties and applications.
-
Equivalence of PDA's and CFG's
UN-2.2.3Exploration of the equivalence between push down automata and context-free grammars, including conversion techniques.
Key Topics
-
Symbol Table Design
UN-3.1Function of Symbol Table, Information provided by Symbol Table, Attributes and Data Structures for symbol table
-
Run-time Storage Management
UN-3.2Managing storage during runtime
-
Turing Machines
UN-3.1.1Introduction to Turing Machines, including their basic concept and computation process.
-
Variants of Turing Machines
UN-3.1.2Exploration of different variants of Turing Machines, including their characteristics and applications.
-
Non-deterministic Turing Machines
UN-3.1.3Study of non-deterministic Turing Machines, including their properties and differences from deterministic machines.
-
Church's Thesis and Algorithm
UN-3.2.1Explanation of Church's Thesis and its significance in the theory of computation, including the concept of algorithm.
4.1: Intermediate languages, Three address code, Declarations, assignment statement, addressing array elements, Boolean expressions, case statements, procedure calls, backpatching. (Chapter 8.1 – 8.7) 4hrs
4.2: Code Generation and Optimization: Code generator design issues, target machine, runtime storage management, basic blocks and flow graphs, next use information, simple code generator, Peephole optimization. (Chapter 9.1 – 9.6 & 9.9 ) 6hrs