Tuesday, March 22, 2016

What are the types of errors found in different phases of compiler?


  • The lexical analyzer may be unable to proceed because the next token in the source program is misspelled.
  • The syntaxb analyzer may be unable to infer structure for its input because a syntatic error such as a missing parenthesis has occured.
  • The intermediate code generation detects an operator whose operands have incompatible types.
  • The code optimizer, doing control flow analysis, may detect that certain statements can never be reached.
  • The code generator may find a compiler - created control that is too large to fit in a word of the target machine.
  • While entering information into the symbol table, the bookkeeping routine may discover an identifier.
If You want to learn about the technology, computer science & engineering, web programming, freelancing, earning please click here :CSE SOLVE

Related Posts:

  • What is Phase? Phase:  A phase is a logically cohesive operation that takes as input one representation of the source & produces as output another representation.These are Six phases are used in compiler design. These are- &nbs… Read More
  • What is Pass? Pass:         When one or more phase are combined into a module than the module is referred as pass. A pass is read the source program to the output of the previous pass, makes the tra… Read More
  • What is Compiler-Compiler? Compiler-Compiler:   compiler-compiler is a tool, which is used to develop the construct of compiler.It permits a portion of the specification of a language to be non-procedural rather than procedural. Example:&nb… Read More
  • What is Translator? Translator:   Translator is program that performs the task of converting a program written in programming language into a program in another programming language-         &n… Read More
  • What is Compiler? Compiler:  A compiler is a program that reads a  program written in one language the source language & translate it into an equivalent program in another language- the target language.     … Read More

0 comments:

Post a Comment