用汇编语言解析C/C++函数调用中值传递、指针传递和引用传递的内在机制

2012-04-29 00:44:03火善栋杨旭东
计算机时代 2012年9期
关键词:函数调用汇编语言堆栈

火善栋 杨旭东

摘要: 为了让学生通过对汇编语言的学习加深对计算机内部原理的理解,借助汇编语言低级化的特点,详细分析了C/C++函数调用中值传递、指针传递和引用传递的内在实现机制。

关键词: 汇编语言; 函数调用; 指针; 引用; 堆栈

中图分类号:N文献标志码:A 文章编号:1006-8228(2012)09-49-02

Via assemble language to catch on mechanism of value transmit, pointer transmit

and reference transmit in C/C++ function calling

Huo Shandong, Yang Xudong

(1. Chongqing three gorges university, Chongqing 404000, China; 2. Chongqing safety technology profession college)

Abstract: Since the assemble language is an important machine language of facing computer hardware directly, it can help to better understand the principle of computer. The characteristic of assemble language is introduced and it is explained in the paper how to realize value transmit, pointer transmit and reference transmit in the computer.

Key words: assemble language; function calling; pointer; reference; stack

猜你喜欢
函数调用汇编语言堆栈
基于C语言的数学菜单的设计与实现
高等学校计算机专业课程教学改革实践——以汇编语言与接口技术课程为例
计算机教育(2020年5期)2020-07-24 08:52:50
汇编语言与C语言的混合程序设计技术研究
电子制作(2019年10期)2019-06-17 11:45:16
基于函数调用序列模式和函数调用图的程序缺陷检测方法*
嵌入式软件堆栈溢出的动态检测方案设计*
提高《汇编语言程序设计》教学效率的思考与实践
探讨C++编程中避免代码冗余的技巧
基于堆栈自编码降维的武器装备体系效能预测
Unity3D项目脚本优化分析与研究
中国新通信(2017年1期)2017-03-08 03:12:21
一种用于分析MCS-51目标码堆栈深度的方法