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.. Compiler construction 7.2-7.3 storage organization / allocation strategies 7.2 storage organization � runtime storage consists of � generated target code � data objects � static: stored in static data area � dynamic : stored on heap � stack to keep track of procedure activations � procedure call sequence:. In static allocation the compiler can determine the amount of storage required by each data object. and therefore it becomes easy for a compiler to find the addresses of these data in the activation record 2. stack allocation stack allocation strategy is a strategy in which the storage is organized as stack. this stack is also called control stack..
Explain briefly about the storage allocation strategies. b. explain with an example about the optimization of basic blocks.compiler design question bank a:=e�d 56. explain the various compiler construction tools in detail. 67. also write down the output for the following expression after each phase. 59.. Storage allocation strategies the various storage allocation strategies to allocate storage in different data areas of memory are: 1. static allocation � storage is allocated for all data objects at compile time stack allocation 19 2. stack allocation � the storage is managed as a stack 3.. Compiler design run-time environment - learn compiler designs basics along with overview, lexical analyzer, syntax analysis, semantic analysis, run-time environment, symbol tables, intermediate code generation, code generation and code optimization..
No comments:
Post a Comment