火善棟 楊旭東
摘要: 為了讓學(xué)生通過對(duì)匯編語(yǔ)言的學(xué)習(xí)加深對(duì)計(jì)算機(jī)內(nèi)部原理的理解,借助匯編語(yǔ)言低級(jí)化的特點(diǎn),詳細(xì)分析了C/C++函數(shù)調(diào)用中值傳遞、指針傳遞和引用傳遞的內(nèi)在實(shí)現(xiàn)機(jī)制。
關(guān)鍵詞: 匯編語(yǔ)言; 函數(shù)調(diào)用; 指針; 引用; 堆棧
中圖分類號(hào):N文獻(xiàn)標(biāo)志碼:A 文章編號(hào):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