Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

C::B with DM or vc++?

(1/8) > >>

Trikko:
I've done several test with wxwidgets and other libs (f.e. antigrain) to test compiler performances. It seems that gcc it's slow to compile, make big exes and they are poorly optimized. For example on antigrain benchmark gcc is 4/5 times slower than dmc and vc++... I know you use mingw to improve performace, but i wonder if anyone have tried to compile it with other compilers...

takeshimiya:

--- Quote from: Trikko on February 22, 2006, 01:51:41 pm ---It seems that gcc it's slow to compile, make big exes and they are poorly optimized.

--- End quote ---
Yes to first (but it's improved a lot with GCC4), yes to second (but only win32, MinGW32 linker's fault), and the third, YMMV.


--- Quote from: Trikko on February 22, 2006, 01:51:41 pm ---I know you use mingw to improve performace, but i wonder if anyone have tried to compile it with other compilers...

--- End quote ---
AFAIK it's not used to improve performance, it's used because it's the most common and portable opensource compiler.


--- Quote from: Trikko on February 22, 2006, 01:51:41 pm ---i wonder if anyone have tried to compile it with other compilers...

--- End quote ---
Yes, Sam got it working with MSVC, but I don't know if he made patches or if the patches are applied on SVN.
I don't know about DMars, but if any errors, it's most probably because DLLEXPORT and those kind of things.

mandrav:

--- Quote from: Trikko on February 22, 2006, 01:51:41 pm ---I know you use mingw to improve performace, but i wonder if anyone have tried to compile it with other compilers...

--- End quote ---

AFAIK some people have tried. The results, I don't know.
But even if it could succesfully build in other compilers, we 'd still use GCC. This will never change, no matter what.
Here are the reasons:

[*] C::B is cross-platform and the only reliable cross-platform compiler available is GCC.
[*] I don't have MSVS nor have I ever used/seen it. I don't plan to change this now.
[*] The above point makes clear that even if someone contributed a patch for other compilers to build C::B, it wouldn't be accepted because we couldn't maintain it (been there, done that).
[/list]

With that said, you should really learn how to use the available optimization options for GCC. GCC generated executables are not slower than MSVS's nor DM's.


--- Quote ---antigrain benchmark gcc is 4/5 times slower
--- End quote ---

I 'd like to see some facts please.
I can tell you it's 3 times faster but if I don't show you the facts, it's not worth anything...

takeshimiya:
Trikko: C::B is buildable with other compilers like MSVC. But it will never be distributed as is in official builds.

It will happen like Firefox development: The official builds are always built with GCC, and Unofficial, Nightly builds are most of times built with MSVC2005, or other compilers, often for optimization purposes.

Sam got C::B compiling on MSVC here: http://forums.codeblocks.org/index.php?topic=2085.0

Hope that answer your questions.

Trikko:
bauhauah what an idiot i am... i mean "to improve portability" (becase gcc is the same compiler on many platform) :D

Navigation

[0] Message Index

[#] Next page

Go to full version