{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lec23 - CS415 Compilers Procedure Abstraction These slides...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
CS415 Compilers Procedure Abstraction These slides are based on slides copyrighted by Keith Cooper, Ken Kennedy & Linda Torczon at Rice University
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Lecture 23 2 cs415, spring 10 Establishing Addressability Using access links ( static links ) Each AR has a pointer to AR of lexical ancestor Lexical ancestor need not be the caller Reference to < p ,16 > runs up access link chain to p Cost of access is proportional to lexical distance parameters register save area return value return address access link caller’s ARP local variables A R P parameters register save area return value return address access link caller’s ARP local variables parameters register save area return value return address access link caller’s ARP local variables Some setup cost on each call
Background image of page 2