You can probably get better help if you provide more information:
What compiler are you using?
What build technology (make, Visual Studio...) are you using?
When you say the project loads lots of libraries when you compile, what do you mean?
Are you sure you are talking about compile time and not link time or a combination of both?
Main Topics
Browse All Topics





by: itsmeandnobodyelsePosted on 2009-08-29 at 01:25:57ID: 25213339
>>>> a project which loads lots of libraries every time I compile
The libraries needed for compiling were loaded only once. I don't think that you can accelerate that part.
A. What you can do is to put all modules used by more than one cpp into a separate (static) library project. But that only works for functions not inlined.
B. If you have huge headers with much inline code, you could consider to using precompiled headers (PCH). Here some big headers were compiled only once by a separate cpp that only includes those headers and to other cpp's using the same headers the compiler would use the precompiled module instead of compilig the headers again. I would assume that the intel accelerating is at least partly based on PCH techniques.
The Microsoft VC compiler has the PCH feature with its first version. But I must say that I always turned it off if it was my decision as the benefits are small (especially with nowadays computers) and there are some side effects which could lead to bad errors.
So, I would go the libary way which would allow you to build fastly only the new code and have a full build only if you change some basics.