A call stack is composed of stack frames (sometimes called activation records). These are machine dependent data tructures containing subroutine state information. Each stack frame corresponds to a call to a subroutine which has not yet terminated with a return. For example, if a subroutine named DrawLine is currently running, having just been called by a subroutine DrawSquare, the top part of the call stack might be laid out like this (where the stack is growing towards the top):
Weekend
12 年前
没有评论:
发表评论