wxDev-C++ is slow
wxDev-C++ is slow
i have lastest version a wxDev-C++ and it's very very slow why?
and what can i do but he was foaster
and what can i do but he was foaster
Hi!
It's not wxDev-C++ in general, but the underlying compiler (see here http://wxwidgets.solidsteel.nl/viewtopic.php?t=2074).
Maybe try unsing precompiled headers could help a little. See here http://wxwidgets.solidsteel.nl/viewtopic.php?t=2107
It's not wxDev-C++ in general, but the underlying compiler (see here http://wxwidgets.solidsteel.nl/viewtopic.php?t=2074).
Maybe try unsing precompiled headers could help a little. See here http://wxwidgets.solidsteel.nl/viewtopic.php?t=2107
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4
"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4
"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
Use another compiler?
Maybe the best way to improve speed is use another compiler. In this thread there's some talk about using a free compiler from MS, but at the end is not clear to me wheter that option was feasible or not:
http://forums.wxwidgets.org/viewtopic.php?t=2213
http://forums.wxwidgets.org/viewtopic.php?t=2213
-
- Knows some wx things
- Posts: 41
- Joined: Wed Oct 27, 2004 6:06 pm
- Location: Western NY
- Contact:
We used precompiled headers here for a while, and they did speed up compilation by say 50%. However we ditched them because:upCASE wrote:Hi!
Maybe try unsing precompiled headers could help a little. See here http://wxwidgets.solidsteel.nl/viewtopic.php?t=2107
1) They took a very long time to build
2) If one of the headers that was referenced in the file you were precompiling changed and you forgot to recompile your PCH it can cause the compiler to spit out errors that won't make sense because it is still looking at the old version of the header.
However, if it is the wx includes that are lagging the compiler out, it may be helpful to precompile just those and use them. In our case we had many template libraries that tended to change so PCH actually ended up costing us more time.
-
- Knows some wx things
- Posts: 27
- Joined: Thu May 26, 2005 10:39 am
- Contact:
On my machine it takes a long time doing 'dependency checking' before compiling. DEV-C++ 4.9.9.2 never used to do that, so I don't know whether its a DEV-C++ 5 thing or a wxdev-c++ thing. Often it generates a makefile like this:
Naturally make can't understand it. So if 'dependency checking' is your problem, use bakefiles instead since its quicker and more portable.
Code: Select all
myapp.exe: myfile.o
myfile.o: myfile.cpp In file included from myfile.cpp:10
Hi!
The "dependency checking" is a Dev-C++ feature, but I guess it was disabled in Dev-C++, while wxDev-C++ enables it by default. Although it takes longer when compiling, it's a good idea to leave it on. Otherwise "quick makefile generation" will be used, which in turn leads to trouble when modifying a header file in a way, so that the source should be recompiled. Doing it the quick way won't recompile and compilation will fail. Leaving the option on will check what files have to be recompiled before each build step, resulting in longer times but better compilation.j_pilborough wrote:On my machine it takes a long time doing 'dependency checking' before compiling. DEV-C++ 4.9.9.2 never used to do that, so I don't know whether its a DEV-C++ 5 thing or a wxdev-c++ thing. Often it generates a makefile like this:Naturally make can't understand it. So if 'dependency checking' is your problem, use bakefiles instead since its quicker and more portable.Code: Select all
myapp.exe: myfile.o myfile.o: myfile.cpp In file included from myfile.cpp:10
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4
"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4
"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda