摘要
C51的堆栈操作和硬件及软件实现密切相关,C程序设计一般隐藏底层实现细节,因此由堆栈引发的错误很难发现,本文从C51堆栈构成、使用的场合出发,详细比对系统堆栈和模拟堆栈的不同,并由此分析了两类堆栈空间的计算方法,为避免堆栈溢出提供参考。
C51 stack operation closely related to hardware and software design.C program always conceals the details of underneath implementation of program,so the error caused by the stack was hard to fred.In this paper, difference of system stack and simulated stack was summarized through detail comparison of C51 stack constitution and using.How to calculate the two kinds of stack space was resolved,this provided reference to avoid stack overflow.
出处
《自动化与仪器仪表》
2013年第2期154-155,158,共3页
Automation & Instrumentation
关键词
系统堆栈
模拟堆栈
堆栈溢出
堆栈空间计算
Hardware stack
Simulated stack
Stack overflow
Stack space calculation