Keil Coremark 偏低是编译器原因?

2019-03-23 18:09发布

本帖最后由 cl17726 于 2016-6-17 08:58 编辑

虽然说Keil编译出来的Coremark偏低,但是我还是喜欢Keil,衡量好坏不能单从Coremark来说,就如手机不能只靠小米兔兔说啊.当然IAR效率高也得益于他激进的更新,萝卜青菜各有所热爱吧.

Keil 最高优化,-O3,Optimize for time,Use Cross-Module Optimization,V5.06编译器,Use MicroLib.

Program Size: Code=17486 RO-data=898 RW-data=148 ZI-data=6308  

2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 13748
Total time (secs): 13.748000
Iterations/Sec   : 872.854233
Iterations       : 12000
Compiler version : -O3,Optimize for time,Use Cross-Module Optimization,V5.06
Compiler flags   : N
Memory location  : STACK
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0xd340
Correct operation validated. See readme.txt for run and reporting rules.
CoreMark 1.0 : 872.854233 / -O3,Optimize for time,Use Cross-Module Optimization,V5.06 N / STACK


IAR下测试,最高优化,速度优化,不约束体积,函数内联,指令调度优化.编译后,看来占用RAM确实很大.

  23 286 bytes of readonly  code memory
     379 bytes of readonly  data memory
  17 040 bytes of readwrite data memory


2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 11160
Total time (secs): 11.160000
Iterations/Sec   : 1075.268817
Iterations       : 12000
Compiler version : Please put compiler version here (e.g. gcc 4.1)
Compiler flags   : N
Memory location  : STACK
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0xd340
Correct operation validated. See readme.txt for run and reporting rules.
CoreMark 1.0 : 1075.268817 / Please put compiler version here (e.g. gcc 4.1) N / STACK


IAR下测试,最高优化,速度优化,不约束体积的选项去掉,函数内联,指令调度优化.编译后,看来占用RAM确实很大.

  22 998 bytes of readonly  code memory
     379 bytes of readonly  data memory
  11 830 bytes of readwrite data memory



2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 15710
Total time (secs): 15.710000
Iterations/Sec   : 763.844685
Iterations       : 12000
Compiler version : Please put compiler version here (e.g. gcc 4.1)
Compiler flags   : N
Memory location  : STACK
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0xd340
Correct operation validated. See readme.txt for run and reporting rules.
CoreMark 1.0 : 763.844685 / Please put compiler version here (e.g. gcc 4.1) N / STACK


所以我综合考虑还是用一直习惯的Keil吧.
COREMARK_IAR_AND_KEIL.zip (11.31 MB, 下载次数: 80) 2016-6-17 08:56 上传 点击文件名下载附件
此帖出自小平头技术问答
0条回答

一周热门 更多>