Stack And Heap Allocation In Compiler Design