close

最近由於使用MPLAB免費提供的HITECH C PICC LITE寫的一些程式,

由於是免費版的,可以使用的PRORAM區有受限,

程式編譯完成後,我嚇了一跳,

居然快使用到受限制程式區的九成,

 

雖然免費版的程式空間限制只有2K WORDS,如果是PIC16F877A,程式空間是有8KH的,

可是我仍覺得編譯的結果程式還是太大,所以我決定下載HITECH C PRO來試試看。

一樣的程式,丟到HITECH PRO去編譯,結果雖然可用的程式空間變成8KH

不過編譯的程式更大了,好的是在DATA MEMORY變小了, 

 

不過讓我覺得有點失望,畢竟PRO版的是要花$1495,而且其誇耀的Omniscient Code Generation Compilation Technology,

似乎沒非常強大在程式區的編譯上,

接下來我想修改程式碼寫法,看看能不能讓編是程式便的小一些。

 

附註說明:為什麼要使用PRO版呢?

因為PRO有一種Omniscient Code Generation Compilation Technology,

在文件上是這樣說的:

Code compiled using Omniscient Code Generation can deliver up to 2X the code density,
80% RAM utilization and reduces interrupt latency by 40-60%, saving you time, power and money

PRO 與 LITE的比較:

HI-TECH C PRO for the PIC10/12/16 MCU FamilyPRO mode Lite mode
Pricing  
Single-User License List Price $1495 Free
Technical Support HI-TECH Priority Access included Available
HI-TECH Satisfaction Guarantee (30 day money back guarantee) Yes Free
Optimization  
Overall optimization level Very High Low
Omniscient Code Generation Compilation Technology Yes No
Optimizes the size of each pointer variable in your code based on its usage Yes No
Reduces overhead required for interrupt context switching Yes  No
Optimizations for rapid runtime startup and memory clearing Yes  No
printf library code footprint Compiler eliminates all unused features of printf for smallest footprint Compiler can eliminate some unused printf features
Usability / Features  
Support for all PIC10/12/16 MCUs Yes Yes
Unlimited Memory Usage Yes Yes
Automatically handles memory banking without requiring special qualifiers Yes Yes
Warn if potential runtime stack overflow detected Yes Yes
Eliminates the need for many non-standard C qualifiers and compiler options Yes Yes
Compatible with HI-TECH Software compact bootloader Yes No
printf library functionality Compiler automatically detects and implements printf features required by program Compiler detects and implements printf features used in source
Integrates into HI-TECH Software's IDE, HI-TIDE 3 Yes Yes
Fully integrates into MPLAB® IDE Yes Yes
Runs on all platforms: Windows (including 64-bit Vista), Linux and Mac OS X Yes Yes
   
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 fishark 的頭像
    fishark

    魚的方舟圖形語言的世界 - LabVIEW & Arduino & Python工作室 - 新網站https://labview-tech.blogspot.com/

    fishark 發表在 痞客邦 留言(0) 人氣()