Author Topic: Compilation times  (Read 6556 times)

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Compilation times
« on: June 15, 2005, 08:08:09 pm »
In my machine (Athlon XP 1.8 ) the compilation time (full rebuild) takes about 8 minutes. This is specially annoying when modifying a class definition in the SDK :(

How long are your rebuild times for C::B? Any hints on reducing the compilation times? Perhaps a technique we haven't used?

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Compilation times
« Reply #1 on: June 15, 2005, 08:57:18 pm »
I just noticed something. editormanager.h depends on editorbase.h, altho the only thing where class editorbase is used is:

Code

WX_DECLARE_LIST(EditorBase, EditorsList);


Can it be done without including the editorbase.h (just by declaring "class EditorBase;" ) ?

Update: Yes, it can! In fact I updated editormanager.h to drop a few dependencies. Hopefully this will cut some compile times :-)

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Compilation times
« Reply #2 on: June 16, 2005, 08:30:03 am »
i've played a little using precompiled headers with gcc,
it works, but the effort is high, especially if you have so much modules in use like C:B has
and the gain is low, because the most time is consumed by the terrible slow linker.

the only solution i really can think of is to use a faster compiler like
DigitalMarsCompiler (DMC, fastest of all) or M$VC

the drawback is, both DMC and M$VC, are lacking a good usable debugger in the free-versions.

on the other hand, a DMC-CD with IDDE only costs 45$
i've ordered one after playing a while with the free version,
and i will switch over to DMC for my future projects.