Browsing this Thread:
1 Anonymous Users
|
Re: 如何知道程式佔用多少rom,多少ram?
|
|
管理員
Joined
: 2004/4/28 19:29 最後登入時間
: 4/26 14:37
Group:
註冊會員 站務管理者
Level : 18 HP : 0 / 426 MP : 125 / 24946 EXP : 7
|
1. 如果只是要知道 memory 的使用情形 , 可以在 MPLAB IDE 的主功能表的第三項 "View" 中選擇 Memory Usage Guage 這個項目 , 就會有一個圖形化的表示視窗 . 可以看到使用情形.
2. 若要有各節區的詳細配置情況 , 就要產生 .map 檔啦 ! 在 MPLAB IDE 主功能表的第四項 "Project" 中 , 選擇 Build Options -> Project . 會看到各相關語言工具的 Option. 此時選擇 MPLINK linker 這個項目 , 就可以在右上方看到有一個可勾選的項目 , 名稱為 "Generate map file" .
將這項目選取後重新 build project. 就可產生 .map 檔了 :)
Regards,
發表於: 2006/8/12 22:16
|
|
|
如何知道程式佔用多少rom,多少ram?
|
|
中級會員
Joined
: 2004/5/18 17:34 最後登入時間
: 2012/8/25 18:30
From Taipei
Group:
註冊會員
Level : 6 HP : 0 / 142 MP : 20 / 8290 EXP : 69
|
PIC C18 compiler 之後,如何知道flash rom使用狀態,及ram的使用狀態,及Segment 使用狀態 例如:
ROM used: 23612 (72%) 23612 (72%) including unused fragments
6 Average locations per line 13 Average locations per statement
RAM used: 1279 (83%) at main() level 1396 (91%) worst case
Segment Used Free --------- ---- ---- 00000-00002 4 0 00004-00006 0 4 00008-00102 252 0 00104-07FFE 23356 9152
是否有status file
發表於: 2006/8/12 8:06
|
|
You can view topic.
你 不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.