www.digitalmars.com         C & C++   DMDScript  

c++.wxwindows - Release build / dmc speed

reply Bill Baxter <dnewsgroup billbaxter.com> writes:
I just did the bakefile editing and re-gen jig necessary for compiling 
wx 2.8.4 with dmc in release mode.

Oh ... my ... goodness.
Is it supposed to take *that* long?
I killed my compile midstream numerous times because I thought it had 
gone into an infinite loop (as optlink sometimes does).
The aui sample took at least 5 full minutes to compile & link.  Is that 
normal?

The default debug config took nowhere near that much time.  Maybe a few 
seconds to link the aui sample.

I've got dmc "8.42n" and optlink 8.00.1. on Win XP.

--bb
May 29 2007
parent reply Bill Baxter <dnewsgroup billbaxter.com> writes:
Bill Baxter wrote:
 I just did the bakefile editing and re-gen jig necessary for compiling 
 wx 2.8.4 with dmc in release mode.
 
 Oh ... my ... goodness.
 Is it supposed to take *that* long?
 I killed my compile midstream numerous times because I thought it had 
 gone into an infinite loop (as optlink sometimes does).
 The aui sample took at least 5 full minutes to compile & link.  Is that 
 normal?

I timed the release-unicode build. 14 minutes 10 seconds, almost all spent on this compile command: C:\usr\pkg\wxWidgets\wxMSW-2.8.4\samples\aui>make -f makefile.dmc dmc -mn -c -cpp -odmc_mswu\auidemo_auidemo.obj -o -D_WIN32_WINNT=0x0400 -D__WXMSW__ -D_UNICODE -I.\..\..\lib\dmc_lib\mswu -I.\..\..\include -w- -I. -WA -I.\..\..\samples -DNOPCH -Ar -Ae .\auidemo.cpp Once past that the resource compile (rcc) and final link steps happen almost instantly. --bb
May 29 2007
parent Jan Knepper <jan smartsoft.us> writes:
I am pretty sure that compile command line activates the optimizer and 
yes, when the optimizer is activated things can take rather long and in 
the end you get rather small and fast code... ;-)

Jan



Bill Baxter wrote:
 Bill Baxter wrote:
 I just did the bakefile editing and re-gen jig necessary for compiling 
 wx 2.8.4 with dmc in release mode.

 Oh ... my ... goodness.
 Is it supposed to take *that* long?
 I killed my compile midstream numerous times because I thought it had 
 gone into an infinite loop (as optlink sometimes does).
 The aui sample took at least 5 full minutes to compile & link.  Is 
 that normal?

I timed the release-unicode build. 14 minutes 10 seconds, almost all spent on this compile command: C:\usr\pkg\wxWidgets\wxMSW-2.8.4\samples\aui>make -f makefile.dmc dmc -mn -c -cpp -odmc_mswu\auidemo_auidemo.obj -o -D_WIN32_WINNT=0x0400 -D__WXMSW__ -D_UNICODE -I.\..\..\lib\dmc_lib\mswu -I.\..\..\include -w- -I. -WA -I.\..\..\samples -DNOPCH -Ar -Ae .\auidemo.cpp Once past that the resource compile (rcc) and final link steps happen almost instantly. --bb

-- ManiaC++ Jan Knepper Smartsoft, LLC 88 Petersburg Road Petersburg, NJ 08270 U.S.A. www.smartsoft.us Phone : 609-628-4260 FAX : 609-628-1267 Y! : janknepper But as for me and my household, we shall use Mozilla... www.mozilla.org Get legal - Get OpenOffice.org www.openoffice.org
Jun 01 2007