PPT: Run Time Storage Organization Notes | EduRev

Compiler Design

Computer Science Engineering (CSE) : PPT: Run Time Storage Organization Notes | EduRev

 Page 1


Run-Time Environments
Page 2


Run-Time Environments
Outline
? Compiler must do the storage allocation and provide
access to variables and data
? Memory management
? Stack allocation
? Heap management
? Garbage collection
Page 3


Run-Time Environments
Outline
? Compiler must do the storage allocation and provide
access to variables and data
? Memory management
? Stack allocation
? Heap management
? Garbage collection
Storage Organization
Page 4


Run-Time Environments
Outline
? Compiler must do the storage allocation and provide
access to variables and data
? Memory management
? Stack allocation
? Heap management
? Garbage collection
Storage Organization Static vs. Dynamic Allocation
? Static: Compile time, Dynamic: Runtime allocation
? Many compilers use some combination of following
? Stack storage: for local variables, parameters and so on
? Heap storage: Data that may outlive the call to the
procedure that created it
? Stack allocation is a valid allocation for procedures
since procedure calls are nested
Page 5


Run-Time Environments
Outline
? Compiler must do the storage allocation and provide
access to variables and data
? Memory management
? Stack allocation
? Heap management
? Garbage collection
Storage Organization Static vs. Dynamic Allocation
? Static: Compile time, Dynamic: Runtime allocation
? Many compilers use some combination of following
? Stack storage: for local variables, parameters and so on
? Heap storage: Data that may outlive the call to the
procedure that created it
? Stack allocation is a valid allocation for procedures
since procedure calls are nested
Sketch of a quicksort program
Read More
Offer running on EduRev: Apply code STAYHOME200 to get INR 200 off on our premium plan EduRev Infinity!

Related Searches

Objective type Questions

,

Exam

,

Sample Paper

,

Important questions

,

past year papers

,

Free

,

mock tests for examination

,

PPT: Run Time Storage Organization Notes | EduRev

,

Summary

,

practice quizzes

,

ppt

,

shortcuts and tricks

,

pdf

,

MCQs

,

PPT: Run Time Storage Organization Notes | EduRev

,

Semester Notes

,

Extra Questions

,

study material

,

Viva Questions

,

video lectures

,

Previous Year Questions with Solutions

,

PPT: Run Time Storage Organization Notes | EduRev

;