13.07.2015 Views

Lecture 13 Slides - Suraj @ LUMS

Lecture 13 Slides - Suraj @ LUMS

Lecture 13 Slides - Suraj @ LUMS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

An Activation Record for“Simple” SubprogramsCode andActivationRecords of aProgram with“Simple”SubprogramsImplementing Subprograms withStack-Dynamic Local Variables• More complicated because:– The compiler must generate code to causeimplicit allocation and deallocation of localvariables– Recursion must be supported (adds thepossibility of multiple simultaneous activationsof a subprogram)Typical Activation Record for aLanguage with Stack-DynamicLocal Variables4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!