skip to main
|
skip to sidebar
seke blog
2009年3月19日 星期四
method and call stack
程式呼叫方法(method)步驟:
1.進入方法前,先壓入返回位址(return address)到堆疊(call stack)
2.進入方法後,利用堆疊配置區域變數(local variable)空間
3.依序拷貝引數列(argument list)數值到參數列(parameter list)變數
4.開始執行方法內指令,直到遇到return指令或方法結束大括號}
5.離開方法前,釋放堆疊的區域變數空間
6.從堆疊彈出返回位址,從返回位址繼續執行指令
較新的文章
較舊的文章
首頁
訂閱:
文章 (Atom)
搜尋此網誌
標籤
weka
(23)
dataparksearch
(2)
mahout
(2)
數字轉換
(2)
big5 code
(1)
sorting algorithm
(1)
次方調分法
(1)
符號連結
(1)
熱門文章
CPU burst and IO burst
作業系統講到行程排班使用CPU 常提到行程一生使用資源會在CPU burst及IO burst交替之中度過。 那到底什麼是burst? 如果查burst原義,比較接近的大概是 http://www.merriam-webster.com/dictionary/burst...
how to curve the exam score by the power function
When a class has poor percentage grades, " take the square root and multiply by 10 " is a common technique for raising the grades ...
how to install Ubuntu as subsystem of Windows with a ssh server?
傳統一台 Windows 主機若要同時跑 Linux 作業系統,不是要安裝 Cygwin 套件,就是要透過 VirtualBox 等虛擬機軟體安裝 Linux。現在 Windows 的 WSL (Windows Subsystem for Linux) 技術逐漸成熟...
how to build an osm map server for taiwan on docker
最近集眾人智慧的開放街圖( OpenStreetMap )很熱門,以下介紹一個簡便架設台灣區 OSM 地圖伺服器的方法。 前提是需先安裝 docker 容器環境,例如: Windows 10 上安裝 docker for windows 容器軟體。 有了 docker 容器環境...
benefits of installing guest additions in virtualbox guest os
電腦主機可以安裝虛擬機軟體VirtualBox,在主機上建立虛擬硬體層, 其上再安裝諸多客戶作業系統,同時間跑多個作業系統。 為了提升用戶體驗,VirtualBox同時提供客戶補充包(Guest Additions)套件, 若將其安裝在客戶作業系統上,使用起來會更上手,其具體好...
何謂類別及物件
一般對程式的認知,不外是利用一群指令,可對 資料 作 運算 的工具。 傳統非物件程式語言視 方法 為程式結構主體,內含諸多指令,負責運算資料。 物件導向語言相對重視資料本身,視資料為主體,稱為 物件 , 而和資料相關的運算,則附屬於資料,稱為物件方法。 可以想見不同類型...
rdp port is not listening when using xrdp
Ubuntu等Linux系統可以透過xrdp軟體監聽tcp rdp (3389)埠號,接受Windows mstsc遠端桌面客戶端連線。 一旦發現3389埠號無法連線,可以如下進行診斷: 1.檢查3389埠號是否有行程監聽 $ sudo lsof -i :3389 C...
what are single/dual homed/multi-homed network topologies?
在討論廣域網路如何將客戶端(client)連向伺服端(server),或輻輳(spoke)連向軸心(hub)的連線拓樸時, 常根據源頭(source or home)個數,及線路(link)個數,將連線拓樸依其可靠度/成本分成四類如下: 1.single homed = si...
an example to use the modbus rtu protocol to query/read/write the motor drivers
Modbus應用層協定常作為工業設備之間的溝通語言, RS485實體層協定則常作為電腦及設備之間較長距離、耐雜訊的溝通工具。 因此,若想由電腦對馬達設備進行控制,常見利用 Modbus及RS485建立電腦和馬達驅動器之間的連線。 電腦和馬達驅動器之間的溝通關係如下: 電腦 ...
How to Save and Load a Model in Weka for Training and Testing
Two Weka Command Line Examples of Using Models in Training and Testing: (1) train and save an OneR model load and test an OneR model ...
網誌存檔
►
2024
(3)
►
8月
(1)
►
4月
(1)
►
3月
(1)
►
2023
(8)
►
12月
(1)
►
11月
(3)
►
10月
(1)
►
7月
(2)
►
4月
(1)
►
2022
(4)
►
12月
(2)
►
11月
(2)
►
2021
(11)
►
12月
(6)
►
8月
(2)
►
5月
(1)
►
3月
(1)
►
1月
(1)
►
2020
(4)
►
8月
(1)
►
6月
(1)
►
2月
(1)
►
1月
(1)
►
2019
(18)
►
12月
(1)
►
10月
(2)
►
8月
(2)
►
7月
(6)
►
6月
(1)
►
5月
(4)
►
3月
(1)
►
1月
(1)
►
2018
(5)
►
12月
(1)
►
11月
(2)
►
6月
(1)
►
1月
(1)
►
2017
(27)
►
12月
(2)
►
11月
(2)
►
10月
(2)
►
8月
(2)
►
7月
(3)
►
6月
(1)
►
5月
(3)
►
4月
(2)
►
3月
(6)
►
1月
(4)
►
2016
(9)
►
9月
(1)
►
5月
(4)
►
4月
(1)
►
3月
(1)
►
2月
(1)
►
1月
(1)
►
2015
(22)
►
12月
(2)
►
11月
(8)
►
10月
(10)
►
4月
(1)
►
3月
(1)
►
2014
(6)
►
8月
(4)
►
5月
(2)
►
2013
(5)
►
11月
(1)
►
10月
(2)
►
7月
(1)
►
3月
(1)
►
2012
(3)
►
6月
(3)
►
2011
(3)
►
10月
(1)
►
6月
(2)
►
2010
(3)
►
10月
(1)
►
9月
(1)
►
1月
(1)
▼
2009
(13)
►
11月
(3)
►
10月
(1)
►
7月
(2)
►
5月
(1)
►
4月
(4)
▼
3月
(1)
method and call stack
►
2月
(1)
►
2008
(18)
►
12月
(4)
►
11月
(1)
►
10月
(1)
►
7月
(2)
►
5月
(3)
►
4月
(6)
►
3月
(1)
►
2007
(1)
►
7月
(1)
關於我自己
seke
檢視我的完整簡介