Horizontal Nav

Compiler Construction

compiler is a computer program that implements a programming language specification to "translate" programs, usually as a set of files which constitute the source code written in source language, into their equivalent machine readable instructions (the target language, often having a binary form known as object code). This translation process is called compilation. We compile the source program to create the compiled program. The compiled program can then be run (or executed) to do what was specified in the original source program.
The source language is always a higher-level language in comparison to machine code, written using some mixture of English words and mathematical notation, assembly language being the lowest compilable language (an assembler being a special case of a compiler that translates assembly language into machine code). Higher-level languages are the most complex to support in a compiler/interpreter, not only because they increase the level of abstraction between the source code and the resulting machine code, but because increased complexity is required to formalize those abstract structures.
The target language is normally a low-level language such as assembly, written with somewhat cryptic abbreviations for machine instructions, in this cases it will also run an assembler to generate the final machine code. But some compilers can directly generate machine code for some actual or virtual computer e.g. byte-code for the Java Virtual Machine.
Another common approach to the resulting compilation effort is to target a virtual machine. That will do just-in-time compilation and byte-code interpretation and blur the traditional categorizations of compilers and interpreters.
Compiler construction is an area of computer science that deals with the theory and practice of developing programming languages and their associated compilers.

The theoretical portion is primarily concerned with syntax, grammar and semantics of programming languages. One could say that this gives this particular area of computer science a strong tie with linguistics. Some courses on compiler construction will include a simplified grammar of a spoken language that can be used to form a valid sentence for the purposes of providing students with an analogy to help them understand how grammar works for programming languages.

Here Provides some PPT Lectures about this topic:

Compiler Construction Ch1
Compiler Construction Ch2
Compiler Construction Ch3
Compiler Construction Ch4(Part1)
Compiler Construction Ch4(Part2)
Compiler Construction Ch4(Part3)
Compiler Construction Ch5(Part1)
Compiler Construction Ch5(Part2)
Compiler Construction Ch6(Part1)
Compiler Construction Ch6(Part2)
Compiler Construction Ch6(Part3)
Compiler Construction Ch7
Compiler Construction Ch8(Part1)
Compiler Construction Ch8(Part2)
Compiler Construction Ch8(Part3)
Compiler Construction Ch9


No comments:

Post a Comment