is stack only for method?

  • call stack is a stack data structure that stores information about the active subroutines of a computer program
  • for active method
  • primary purpose of a call stack is to store the return addresses
    • return address -> the location (address) of the instruction at which it can be later resume, ie. the address of in method area?
    • others
      • local data storage
      • parameter passing
      • pointer to current instance (this)
  • stack frame
    • Each stack frame corresponds to a call to a subroutine which has not yet terminated with a return
This entry was posted in Knowledge, Relax, Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s