Code::Blocks Forums

User forums => Help => Topic started by: eckard_klotz on November 13, 2013, 04:56:27 am

Title: Newer MinGW seems to slowdown the build binary
Post by: eckard_klotz on November 13, 2013, 04:56:27 am
Hello Everybody.

In the past I used MinGW 4.4.1 ("gcc-4.4.1-tdm-2") to compile my shell binaries (Moritz and MuLanPa). Now I changed to MinGW 4.7.1 ("tdm-gcc-4.7.1-2"). But the result is not realy satisfying me. The binaries become larger and slower. Especialy those parts in my binaries wich use spirit-parsers doubled their runtime. You may test it by downloading at http://sourceforge.net/projects/mulanpa/files/MuLanPa_0/ (http://sourceforge.net/projects/mulanpa/files/MuLanPa_0/) the windows-release of September and October. The change in the sourecs are from my view very small but the difference in the runtime is very significant.

But it may be that I just use the wrong build options. Currently I use C::B 9246 on winxp sp3 (32 bit). I played around with the configuration of the build-process ant the optimyzation and I found out that it is possible to decrease the size. But I was not able to reache the same speed as with the older MinGW.

Has anybody some more experiences with this and knows how to configure the build-process with MinGW speed up the resulting binary?

Best regards,

                  Ecakrd.
Title: Re: Newer MinGW seems to slowdown the build binary
Post by: eckard_klotz on November 14, 2013, 06:06:11 am
Hello Everybody.

Yesterday I tried the new "tdm-gcc-4.8.1-3" also with a similar result (actualy the build binary was a little bit slower, what means it was achnage in the more worst direction).

There are 2 reasons why I mention this in the forum of C::B :


Best Regards,
            Eckard.
Title: Re: Newer MinGW seems to slowdown the build binary
Post by: oBFusCATed on November 14, 2013, 09:02:11 am
What means for me for a plugin I have to use "TDM GCC 4.7.1".
Yes, the compilers must match. Otherwise you might get strange errors.

  • Second I understood C::B always as an IDE with a special support or MinGW.
Hm, no C::B is generic it terms of compiler support. MinGW (TDM port that we ship) is used the most because it is the easiest to use or ship on Windows.
But keep in mind that this forum and the project doesn't provide support for any of the compilers that can work inside C::B.
This is of course written in the rules and you should already know it.
Title: Re: Newer MinGW seems to slowdown the build binary
Post by: eckard_klotz on November 14, 2013, 09:32:06 am
Hello oBFusCATed.

Quote
Hm, no C::B is generic it terms of compiler support. MinGW (TDM port that we ship) is used the most because it is the easiest to use or ship on Windows.
But keep in mind that this forum and the project doesn't provide support for any of the compilers that can work inside C::B.
This is of course written in the rules and you should already know it

OK. You are right, you are not responsible for supporting this compiler and may be if I wrote about a "a special support or MinGW" I used the wrong words. I ment it more in the sense that you may have some more experineces in this things since the windows version has an own interface for MinGW  (mingw10m.dll) and you use it for compiling Code::Blocks for windows.

Thus please let me correct my statement:
 
Second I understood C::B always as an IDE where the developers have special experiences in using MinGW and may be interested in those problems since it may effect their work also.


Third if you have no special experiences do you know where the forum of TDM is? I only found a bug-tracker but I think, it is not realy a bug but only a missing configuration-option currently not available in the default list of Code::Blocks.

Best regards,
                    Eckard.
Title: Re: Newer MinGW seems to slowdown the build binary
Post by: eckard_klotz on November 18, 2013, 10:00:17 am
Hello Everybody.

In the meanwhile I found the reason why the new MinGW results in bigger and slower binaries and I found a solution to deal with this also. But I wonder if it is really welcomed to mention this here. In fact it was a challenge more related with the installation-package provided by TDM what comes along with SJLJ and not with DW2. What means the solution was to install a second independent MinGW system in parallel.

Respecting the order given by oBFusCATed I don't want to publish to much text to provide misusing this forum. But actually I think that this information will be also useful for the users for Code::Blocks:

But perhaps my real failure was not to post my TDM related question on the Code::Blocks side. But I used the wrong part-forum.

Please give me a hint how continue. I like to share my lesson learned as long as you allow it. If you think that an other forum of Code::Blocks is a better place for it please feel free to move my post.

Best regards,
                     Eckard.
Title: Re: Newer MinGW seems to slowdown the build binary
Post by: eckard_klotz on November 19, 2013, 12:34:22 pm
Hello Forum Admin.

Just to give you an impression what I'm thinking about, as long as you are able to deal with the German language you may take a look to this:http://www.c-plusplus.de/forum/321527?sid=4c7fb7b5c692915bfef92200c0252e87 (http://www.c-plusplus.de/forum/321527?sid=4c7fb7b5c692915bfef92200c0252e87).

Certainly I have to translate this for the Code::Blocks forum. But I will do so only if you are interested.

Best Regards,
                   Eckard.