首 页 | 新 闻 | Symbian | Android| Windows Mobile | J2ME | 下载中心 | 游戏策划招聘与求职 | 购书指南 | 视频教程
您现在的位置: 开发视界 >> Symbian英文资料 >> Tips Tricks >> 正文
Speed-up your builds with concurrent compilation
作者:佚名    文章来源:不详    更新时间:2006-5-7 11:26:02

Metrowerks Codewarrior has a Concurrent compilation feature which is disabled by defaut but which can speed up your builds when used on a system with modern processor (hyperthreading support). To enable this option, open the Codewarrior / Edit / Preferences menu and select the "Concurrent Compiles" tab:

The Codewarrior Preference window

Click the Use Concurrent Compiles checkbox and validate. The default recommended choice should be fine but you can enter a custom value if you want to do some testing.

On my system - a desktop with a Pentium 4 processor at 3.2Mhz, 1Go Dual channel DDR-SDRAM PC533 and a RAID-1 disk array, I experienced a 20-25% diminution of my compilation times. Here are some samples figures for two components of a same project (total time in seconds, including link):

WINSCW build

Application Default settings 2 Compilations 4 Compilations
a utility library (56 files) 34s 27.5s 27.5s
a MPEG4 decoder engine (127 files) 89s 66s 66s

ARMI build

Application Default settings 2 Compilations 4 Compilations
a utility library (56 files) 94s 74s 72s
a MPEG4 decoder engine (127 files) 217s 175s 171s

The figures above show a global performance increase of around 20% for rather big component, no matter whether you use WINSCW or ARMI target. This is quite interesting when you are just sitting there waiting for your compilation to finish (actually writing this article!).

Note that when enabling the concurrent compilation, the Codewarrior CPU usage raises to 100% compared to around 72% when the default non concurrent configuration. This makes the usage of other applications a little bit slow compared to what you may be used to.

相关文章:
How to reset the alternate makmake entry in Codewarrior
Integrating LeaveScan into Codewarrior 3.x
Codewarrior: how to avoid the "Too Many Include Paths" error when using the UIQ 2.1 SDK
Getting Started with Metrowerks Codewarrior
Managing Subprojects with Codewarrior
How to compile for WINSCW without a CodeWarrior or Visual Studio IDE
Getting started with Symbian development
Speed-up your builds with concurrent compilation
 

站点地图 | 加入收藏 | 联系站长 | 广告服务 |
QQ:280529124  Tel:0592-8271361 辽ICP备05021703号