0 votes 0 votes Consider the following sentences : 1. Static allocation binding do not change at run time 2. Heap Allocation allocate and deallocate at run time Which of the above is true ? Compiler Design compiler-design static-allocation + – Dexter asked Apr 12, 2016 retagged Jun 17, 2022 by Lakshman Bhaiya Dexter 1.1k views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply Dexter commented Apr 12, 2016 reply Follow Share it should be both right ? According to me for S2, heap deallocation responsibility do depend upon programming languages. in case Of C , it need to be done manually WHile in java there is automatic garbage collector , so deallocation can happen at run time . so how would i say s2 is right or not unless progarmminglangauages is not specified . 0 votes 0 votes abhilashpanicker29 commented Apr 12, 2016 reply Follow Share Even in manual deallocation in C, it is done at runtime only right? 1 votes 1 votes Dexter commented Apr 12, 2016 reply Follow Share oh yes . so it should be both 2 votes 2 votes Please log in or register to add a comment.
Best answer 3 votes 3 votes Both the sentence is right. According to Aho-Ullman, Compiler Design book, 1) Static Allocation: It occurs before run-time and does not change during run-time 2) Dynamic Allocation: It occurs during run-time and changes during run-time rude answered Apr 13, 2016 selected Apr 14, 2016 by Dexter rude comment Share Follow See all 0 reply Please log in or register to add a comment.