what hi-tech has done is to bloat up the lite version, and then optimize against that in the pro version to give the illusion of drastic space savings: the claimed 20 - 25% savings for example.
however, when you compare the code generated using the pro compilers vs. code generated using older non-OCG compilers (anything up to 9.60 std I think), you will find that the ocg compilers offer little incremental savings.
-----------------------------------------------------------------------
是啊,我现在就是C和汇编混着看,很难找到.以前的PICC版本就可以看到局部变量,但是对代码的优化能力没有现在的强.
今天我编译了一下,
PICC 8.05的编译后程序空间是67.4%
PICC 9.8的编译后程序空间是67.2%
新的PICC对bank的分配是自动的,在C程序里面不用考虑变量的存放位置 ,而我使用的picc 8.05要自行定义(bank0 除外)
真的很困惑,郁闷死了,PICC怎么就不能看局部变量.以前还好好的.
what hi-tech has done is to bloat up the lite version, and then optimize against that in the pro version to give the illusion of drastic space savings: the claimed 20 - 25% savings for example.
however, when you compare the code generated using the pro compilers vs. code generated using older non-OCG compilers (anything up to 9.60 std I think), you will find that the ocg compilers offer little incremental savings.
so I am still using my 9.60std.
看汇编里编译器把变量放那个地方了,然后看RAM区
-----------------------------------------------------------------------
9.60std 今天我下载了,但是发现我使用的器件不支持,PIC16F727.郁闷.另想办法ing回复【4楼】bigZ
-----------------------------------------------------------------------
回复【4楼】 bigZ
-----------------------------------------------------------------------
现在我也使用这个方法解决了,但很麻烦
一周热门 更多>