The following are the various phases of a compiler:ħ. Linear analysis is one in which the stream of characters making up the source program is read from left to right and grouped into tokens that are sequences of characters having a collective meaning.Īlso called lexical analysis or scanning. Loader/ link editor ←library, relocatable object files Depict diagrammatically how a language is processed. List the subparts or phases of analysis part.Ĥ. The synthesis part constructs the desired target program from the intermediate representation.ģ.The analysis part breaks up the source program into constituent pieces and creates an intermediate representation of the source program.What are the two parts of a compilation? Explain briefly.Īnalysis and Synthesis are the two parts of compilation. The compiler reports to its user the presence of errors in the source program.Ģ. A compiler is a program that reads a program written in one language –the source language and translates it into an equivalent program in another language-the target language.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |