On Tue, 2005-06-28 at 08:16, mei_hua chen wrote:
> hi all :
>
> Can you help me to give me a way to optimize my project . My
> project have many *.cpp files. How to optimize then to make my .exe
> file to to fast. Thank you !!
=====
Suggestions:
1. Organize your code as libraries where possible and compile against
precompiled libraries.
2. Use a compiler cache like http://ccache.samba.org
"ccache is a compiler cache. It acts as a caching pre-processor to
C/C++ compilers, using the -E compiler switch and a hash to detect when
a compilation can be satisfied from cache. This often results in a 5 to
10 times speedup in common compilations.".
Basically this works by monitoring the files to be compiled, the header files
and compiler flags and if nothing changes the cache will return the already
compiled object file.
Have not tested this with DevC++ or the Windows environment, YMMV.
--
Gabriel Horatiu Petchesi
http://www.prolix.ro