|
|
|
|
 【讨论一下吧】VC 和 GCC 效率比较 - heartofdra [ 2006-02-15 10:30 | 1,012 byte(s)]
 Re: 【讨论一下吧】VC 和 GCC 效率比较 - UcDebian [ 2006-02-23 10:32 | 104 byte(s)]
 Re: 【讨论一下吧】VC 和 GCC 效率比较 - babycry [ 2006-02-19 23:59 | 360 byte(s)]
 Re: 【讨论一下吧】VC 和 GCC 效率比较 - gillionaire [ 2006-02-21 06:09 | 270 byte(s)]
 Re: 【讨论一下吧】VC 和 GCC 效率比较 - MMMIX [ 2006-02-15 20:36 | 148 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
The same code,a Kalman filter deamon writen in C++.
when :
Hardware platform :MVME5500:
CPU: MPC7455 1000MHz
L2 Cache: 256K L3 Cache: 2MB
Memory: 512MB onboard ECC SDRAM
Software platform:
Tornado2.2 , VxWorks5.5.1. gcc
Result: 去掉了debug info,optimize level 为“o3”:The whole cousume time is 0.750086188316 sec
while:
Hardware platform :PC
CPU: Celeron 1722.0MHz
L1 Cache: 8KB
L2 Cache: 128KB
Memory: 256M DDR_SDRAM 133MHz.
Software platform:
Microsoft Windows XP Professional Build 2600
Service Pack 2
Visual C++6.0 Enterprise Edition
Result: 用Release模式做成.exe运行: The whole cousume time is 0.16 sec
Anybody believed it ? How to add proper optimize options ?
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
建议楼主看一下
Computer Architecture:A Quantitative Approach 3rd
的开头部分, 其中对benchmark 的描述颇为精彩, 也许可以解楼主之惑.
|
|
|
----
天地不仁, 以万物为刍狗!
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
"Computer Architecture: A Quantitative Approach".
是本好书,但没有什么用处,空谈而已。
建议你用gprofiler看一看每一个函数被调用了多少次,用了多少时间。
如果你用gsl的话,建议你尽量是矩阵运算向量化。
还有,看一看你的MPC7455的指数运算库函数是否优化。
我假设你懂得 Kalman filter .
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
"Computer Architecture: A Quantitative Approach".
是本好书,但没有什么用处,空谈而已。
什么叫没什么用处,是书就有用处,即使是烂书、黄书。
关键是阅读者思考的能力,当然允许大家有不同的想法,
但请标明那是自己的想法。
|
|
|
[Original]
[Print]
[Top]
|
|
|