Causes of large semantic gap

Two aspects of compilation are:
  1. Generate code to implement meaning of a source program in the execution domain (target code generation)
  2. Provide diagnostics for violations of PL semantics in a program (Error reporting)
There are four issue involved in implementing these aspects (Q. What are the issue in code generation in relation to compilation of expression? Explain each issue in brief. (June-13 GTU))
  1. Data types : semantics of a data type require a compiler to ensure that variable of a type are assigned or manipulated only through legal operation Compiler must generate type specific code to implement an operation.
  2. Data structures: to compile a reference to an element of a data structure, the compiler must develop a memory mapping to access the memory word allocated to the element.
  3. Scope rules: compiler performs operation called scope analysis and name resolution to determine the data item designated by the use of a name in the source program
  4. Control structure: control structure includes conditional transfer of control, conditional execution, iteration control and procedure calls. The compiler must ensure that source program does not violate the semantics of control structures.

Causes of large semantic gap
Add caption

Download the Android app to get all Government Job Notifications on your Mobile.
Download Now
Important: Please always Check and Confirm the above details with the official Advertisement / Notification.
Previous Post Next Post