Author Topic: C::B + GCC4 = damn slow?!  (Read 6679 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
C::B + GCC4 = damn slow?!
« on: September 08, 2009, 11:28:59 am »
Hi all,
today I decided: This must be the day. So...
- I deleted the old GCC3.4.5 compiler I had
- I installed TDM's GCC 4.4.1 with all packages required (SJLJ)
- I compiled wxWidgets 2.8.10 from scratch with this compiler
- I compiled C::B from scratch with this compiler.
Trust me - I really did a full removal of artefacts.
Well C::B launches, but damn slow! It takes ~ 5mins now to come up and remains very slow during runtime.
Anything I am missing? Did anyone already tried to compile wx and C::B under Windows? Does it run fast?
With regards, MortenMacFly
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: C::B + GCC4 = damn slow?!
« Reply #1 on: September 08, 2009, 11:34:59 am »
SHAME ON ME!

I should have SEARCH THE FORUMS!

Ok - I'll try everything again with TDM's 4.4.0 (if I find the release somewhere...).
What a bad luck that I decided just in this very moment to switch. :-(
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: C::B + GCC4 = damn slow?!
« Reply #2 on: September 08, 2009, 11:35:20 am »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: C::B + GCC4 = damn slow?!
« Reply #3 on: September 08, 2009, 03:26:35 pm »
Morten, can I ask you to send me a wxwidgets compiled with one of the recent TDM compilres?
So, I can build cb from cb and test my patch on win32...

I have massive problems with mingw32-make  :x :shock: :? :( :| :twisted: :evil: :cry:
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: C::B + GCC4 = damn slow?!
« Reply #4 on: September 08, 2009, 03:33:37 pm »
Morten, can I ask you to send me a wxwidgets compiled with one of the recent TDM compilres?
I would love to, but are you aware that the compiled wxWidgets is ~650 MB? I don't have that much web space... :-(
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: C::B + GCC4 = damn slow?!
« Reply #5 on: September 08, 2009, 03:36:22 pm »
I have massive problems with mingw32-make  :x :shock: :? :( :| :twisted: :evil: :cry:
however, I can tell you the following:
I am using now:
binutils-2.19.1-mingw32-bin.tar.gz
gdb-6.8-mingw-3.tar.bz2
gcc-4.4.0-tdm-1-core-2.zip
gcc-4.4.0-tdm-1-fortran-2.zip
gcc-4.4.0-tdm-1-g++-2.zip
mingw-utils-0.3.tar.gz
mingw32-make-3.81-20080326-3.tar.gz
mingwrt-3.16-mingw32-dev.tar.gz
mingwrt-3.16-mingw32-dll.tar.gz
w32api-3.13-mingw32-dev.tar.gz
...and the build script(s) attached.

These are make files where you basically only need to do the following:
0.) unextract the ZIP archive ;-)
1.) setup the path's in make_setup.bat
2.) copy *all* these scripts in your wxWidgtes source folder (the one where INSTALL-MSW.txt is in...)
3.) run make_wx_all.bat

[attachment deleted by admin]
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: C::B + GCC4 = damn slow?!
« Reply #6 on: September 08, 2009, 04:01:15 pm »
Uouuuuuuuuu, it started compiling :)

Where should I look for the results?
And is it safe to add -j5 to make, in order to speed the compilation
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Seronis

  • Almost regular
  • **
  • Posts: 197
Re: C::B + GCC4 = damn slow?!
« Reply #7 on: September 08, 2009, 04:02:44 pm »
Morten, can I ask you to send me a wxwidgets compiled with one of the recent TDM compilres?
So, I can build cb from cb and test my patch on win32...

I have massive problems with mingw32-make  :x :shock: :? :( :| :twisted: :evil: :cry:


If you are referring to the (roughly) 9.5mb wxmsw28u_gcc_custom.dll (and nothing else) you can get it out of my dropbox folder via:

http://dl.getdropbox.com/u/1656427/extras/wxmsw28u_gcc_custom.dll

If you mean anything else then I dont have the bandwidth available to upload the entire thing.  Please respond back once you finish downloading or if this isnt the file you mean.  On my system it was compiled with TDM 4.4.0

edit: 

or if ya got it compiling already that works too.  I'll go ahead and leave the dropbox link active for 24 hours just incase you want to try it.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: C::B + GCC4 = damn slow?!
« Reply #8 on: September 08, 2009, 04:22:48 pm »
Where should I look for the results?
there are several *.log files being created. Concerning the optimisation params: Dunno. I never use them. Compilation takes ~ 3 hours on my PC, but you'll get everything you need for unicode/ansi and release/debug build.

The libs are in the folder "lib" and sub-folders, concerning the configuration - e.g. folder gcc_dll for dyamic library, lib libwxmsw28ud.a for unicode, debug release.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: C::B + GCC4 = damn slow?!
« Reply #9 on: September 08, 2009, 04:30:52 pm »
Thank you all,   :lol: :lol: :lol: :lol: :lol:
The compilation works (there are some errors in the log, but it works and I don't care much).

I've run only make_wx_shared.bat and the compilation of C::B finished correctly :)
I've modified it to put -j5 put the compilation failed misserably :(


Seronis: thanks for the upload ...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: C::B + GCC4 = damn slow?!
« Reply #10 on: September 08, 2009, 06:25:42 pm »
I've modified it to put -j5 put the compilation failed misserably :(

-j5 in plain MinGW's Make? Did it fail because it did not recognize the option, or has it been added to it and still failed? As far as I know it only works on MSYS (and in *nix of course).

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: C::B + GCC4 = damn slow?!
« Reply #11 on: September 08, 2009, 10:18:14 pm »
The option worked, but the build fail (I think) ..  might have not been optimized for parallel make...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]