---
title: "call_stack 与 call_frame"
author: "lancelotwjq"
date: "2013-02-28T10:04:51Z"
tags: []
categories: ["开源软件"]
slug: "call-stack-call-frame"
draft: true
lastmod: "2013-02-28T10:06:38Z"
id: 1817590
url: "https://glusterfs.iteye.com/blog/1817590"
---

call\_stack由一个或多个call\_frame组成。

 

Each call\_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 been called by a subroutine `DrawSquare`, the top part of the call stack might be laid out like this:

![](http://upload.wikimedia.org/wikipedia/commons/d/d3/Call_stack_layout.svg)

 上图就是一个call\_stack, 它由两个call\_frame组成。

 

参考：http://en.wikipedia.org/wiki/Call\_stack