• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
:::


Browsing this Thread:   1 Anonymous Users




« 1 (2)


Re: 請問在 MPLAB 內如何觀察編譯後的程式碼大小?
#8
資深會員
資深會員


查看用戶資訊
原來如此,多謝樓上兩位大大,
請問實際的容量要看 Single word instruction 是嗎?
哪 Flash Memory 那一欄是什麼意思呢?

發表於: 2009/6/30 17:00
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問在 MPLAB 內如何觀察編譯後的程式碼大小?
#7
資深會員
資深會員


查看用戶資訊
Flash Rom是8192沒錯阿
MPLAB IDE並沒有bug
datasheet上面寫的很清楚

8192才是真正有意義的數字
16K那個,只是讓人"感覺"很大罷了

Attach file:



jpg  (0.00 KB)


發表於: 2009/6/30 15:55
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問在 MPLAB 內如何觀察編譯後的程式碼大小?
#6
資深會員
資深會員


查看用戶資訊
個人看法:
18Fxxxx系列,CPU本身為8位元CPU,但其指令格式為16bits
因此 1個instruction = 2bytes

而MPLAB IDE介面,顯示 View/Memory Usage Gauge應是
instruction.
使用18F4550 (32K bytes, 1 instruction = 16 bites = 2 byte )
顯示 16384 (16K) ----沒有單位.

使用12F675 (1.75K bytes, 1 instruction = 14 bites = 1.75 byte)
顯示 1024 (1K) ----沒有單位.

而這個沒有單位應是1 instruction.

如果要說bug的話,那就是MPLAB IDE與C18使用"單位"不同.
不夠友善friendly及明確,會讓人混淆.

(說實在的PIC架構與"平常"一般大家所知的8051,x86
就不一樣,本來就會有一點混淆.....)

後註: 1 word = ?
這就要看....你使用CPU而定
12F675, 1 instruction = 1 word = 14 bits.
18F4450, 1 instruction = 1 word = 16 bits.
(其他就不再多提了....)

發表於: 2009/6/30 13:33
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問在 MPLAB 內如何觀察編譯後的程式碼大小?
#5
版主
版主


查看用戶資訊
確實是個 bug , 以向美國反應此問題。

謝謝告知。

發表於: 2009/6/30 11:22
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問在 MPLAB 內如何觀察編譯後的程式碼大小?
#4
資深會員
資深會員


查看用戶資訊
我最近也要試用18F14K50, 會注意這個問題!

發表於: 2009/6/29 10:45
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問在 MPLAB 內如何觀察編譯後的程式碼大小?
#3
資深會員
資深會員


查看用戶資訊
參照:

hann_mh 寫道:
View 底下 memory usage gauge 可以顯示

我有試過這個方法,可是有一點很奇怪的,
就是我用的CPU是一顆 16K 的 18F14K50,
但是 memory usage gauge 的視窗打開後,
左邊的 Program Memory 居然顯示 Total : 8192。

有沒有搞錯啊,記憶體被削去一半,是否是 MPLAB 的 Bug?
PS:MPLAB 版本為 8.33

發表於: 2009/6/29 10:12
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問在 MPLAB 內如何觀察編譯後的程式碼大小?
#2
資深會員
資深會員


查看用戶資訊
View 底下 memory usage gauge 可以顯示

發表於: 2009/6/26 11:22
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


請問在 MPLAB 內如何觀察編譯後的程式碼大小?
#1
資深會員
資深會員


查看用戶資訊
版大好:

我安裝了 MCC18 教育版,編譯完程式後,在 Output 視窗內看不到編譯後的程式碼大小,像是 ROM 和 RAM 各用了幾 Byte,ROM 佔了記憶體百分之幾等資訊。

我目前只能在 MAP 檔裡面看到如下編譯結果:

6064 out of 16408 program addresses used, program memory utilization is 36%

之前我是用 Hi-Tech C,編譯完都能在 Output 視窗看到詳細結果,請問 C18 的話要如何改?謝謝。

發表於: 2009/6/26 10:51
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







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.

[進階搜尋]


:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------