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