









































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










































Aspects of compilation
Aspects of compilation-data Types
Aspects of compilation-data Structure
- Data Structure - A PL permits the declaration and use of data structure like arrays, stacks, records, lists etc.
Aspects of compilation-Scope Rule
Scope Rule It determines the accessibility of variables declared in different block of a program. Example:
x, y : real; y, z: integer; x := y
Memory Allocation
Memory Allocation-Static Memory
Code(A) Data(A) Code(B) Data(B) Code(C) Data(C)
Memory Allocation-Dynamic Memory
Dynamic Memory Allocation & Access
ARB (activation record base) 0 (ARB): Dynamic pointer 1 (ARB): static pointer
Reserved pointer
TOS Stack record format
Used for memory allocation and deallocation.
Used for accessing nonlocal variables.
Image source : Google
Compilation of Expression
Toy Code Generator for Expressions
Register Descriptor
(Image Source: http://ictpost.com/e-content-challenges-in )
Status Operand descriptor # Occupied #
Types of intermediate forms