1.explain the different phases of a compiler.compiler:compiler is a program which translates a program written in one language (source language) to an equivale�. The different storage allocation strategies are : 1. static allocation - lays out storage for all data objects at compile time 2. stack allocation - manages the run-time storage as a stack. 3. heap allocation - allocates and deallocates storage as needed at run time from a data area known as heap.. Static allocation names are bound to storage locations this property allows values of local names to be retained across the complete program at the compile time compiler determines how much storage should be allocated for each object. at the compile time, compiler determines the following 1 ..
Full explanation of storage allocation strategies in hindi static allocation stack based allocation heap based allocation and please like share and comment or subscribe my channel smart padai for. Storage allocation strategies: the storage allocation strategy used in each of the three data areas, namely static data area, heap, stack, are different. static allocation lays out storage for all data objects at compile time. stack allocation manages the run-time storage as a stack.. 2 cs2210 compiler design 2004/5 binding binding association of attributes with actual values eg. storage location of variable x with its location in memory (global, local, heap) the time when each of these occurs in a program is the binding time of the attribute.