Tuesday, March 22, 2016

What is intermediate code? Why it is necessary in compiler?

 Intermediate Code : After syntax & semantic analysis the compiler generates an explicit intermediate representation of the source program. thsi, intermediate representation as a program for an abstract machine. It has two properties-

  • It should be easy to produce &
  • Easy to translate into the target program. 

Necessary in compiler:

  • To generate machine/assembly language 
  • To create stream of simple instructios after syntax analysis.
If You want to learn about the technology, computer science & engineering, web programming, freelancing, earning please click here :CSE SOLVE

Related Posts:

  • What is String(Word)? String(Word) : A string (word) is a finite sequence of symbols of that string . Example : abc, 01110 are the examples of string If You want to learn about the technology, computer science & engineering, web programmi… Read More
  • What is Lexema?  Lexema : A lexema is a sequence of characters in the source program that is matched by the pattern for a token. Example : For Pascal statement -  Cons pi = 3.1416; Here, the sub-string pi is a lexema for the… Read More
  • What is the way to represent 3-address code? Write down the advantage & disadvantage of quadruples over triples? Three Address Code: Three address statements are a sequence of statements. Typically, the general form A : B op C, where A, & C are either programmer defined names. Constants or compiler - generated temporary names. … Read More
  • Define different types of translation with example  Different types of translation with example :  A translation is an input/output mapping. Generally three types of translation scheme are used - Three Address Statements Quadruples & Triples Three Ad… Read More
  • What is Symbol? Symbol : A symbol is an abstract entity set we shall not define formally; just an point & line are not defined in geometry. Example :  Letter & digits are examples of symbol. If You want to learn about the t… Read More

0 comments:

Post a Comment