What are the basic aspects of storage management? Discuss them in brief?

1 min read In Compiler Design

One of the important tasks that a compiler must perform is to allocate the resources of the target machine to represent the data objects that are being manipulated by the source program. That is, a compiler must decide the run-time representation of the data objects in the source program. Source program run-time representations 00 the data objects, such as integers and real variables, usually take the form of equivalent data objects at the machine level; whereas data structures, such as arrays and strings are represented by several words of machine memory. There are three types of storage strategies which is shown in fig as follows

Code
static data
Stack
Heap

(1) Static
(2) Stack-based
(3) Heap-based.

Written by

Asheesh Gupta

Asheesh Gupta is a digital marketer, blogger, and developer helping individuals and businesses grow online through SEO, tools, and modern web solutions since 2014.

Leave a Reply

Your email address will not be published. Required fields are marked *