Page 1
Wink Notes
B.Tech CSE — 6th Semester
Compiler Design
— Unit - 1 —
1. Introduction to Compilers
A compiler is a specialized software program that translates a program written in a high-level language (Source Language) into an equivalent program in a low-level language (Target Language), such as machine code or assembly.
1.1 Key Responsibilities
- Translation: Converting source code to object code.
- Error Reporting: Detecting and reporting syntax and semantic errors to the user.
- Optimization: Making the target program run faster and consume less memory.
The translation process must be absolutely correct; a compiler must never change the meaning (semantics) of the original program.