Abstract
A compiler converts source language code to machine-understandable code. This entire translation of code happens in different stages. So, one can define the compiler as a collection of many phases or stages, where every phase performs a single task and the code is translated. This paper is about brief information of the compiler on how the language or source code is evaluated and translated, from which phase what information is extracted in order to generate target code as output. For better clarity, an example of an easy-to-understand language is taken, all steps are explained, and a compiler is designed using FLEX and YACC.
Highlights
As a normal human being or a software developer, one can understand high-level programming languages such as C/C++/Java/Python etc
We need to pass our code through a special program called a Compiler
The compiler is a complex machine which bridges the gap between human readable code and computer readable code
Summary
As a normal human being or a software developer, one can understand high-level programming languages such as C/C++/Java/Python etc. As such languages have various English words such as for, while, if-else, etc. In order to run a program, we need to first convert our program to machine understandable code. We need to pass our code through a special program called a Compiler. ● The second one which is converted and only the machine can understand. The compiler is a complex machine which bridges the gap between human readable code and computer readable code
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have