Thursday, March 24, 2016

Discuss the purpose of the fields of an activation record


Activation Code : Stack allocation collect fixed -storage by using activation record. The activation record contain the following steps - 

  • Storage for simple name & pointers to array & other data structures local to the procedure.
  • Temporaries for expression evaluation & parameter passing.
  • Information regarding attributes for local names & formal parameters, when these cannot be determined at compile time.
  • The return address.
  • A portion to the activation record of the caller.

It is customary & useful to place immediately above the Activation record Data whose size can't be determined until the procedure is called.

Pointers to the location of these arrays are stored at a fixed position in the activation record. Thus the compiler can generate code to access them indirectly though the top-of-stack pointer & for the array itself. 
If You want to learn about the technology, computer science & engineering, web programming, freelancing, earning please click here :CSE SOLVE

Related Posts:

0 comments:

Post a Comment