473,440 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,440 software developers and data experts.

How to speed up my compile times with VC 2003 ?

Hi,

I have ported an application from Unix on Windows.

My problem are the compile times :

UNIX (2x450MHz / 512MB RAM)
Full compile with clean : 1h30

WINDOWS 2000 (P4 1.7GHz / 758MB RAM)
Full compile with clean : 2h58

I found that removing the Build Logging option in VC speed up my compile :

WINDOWS 2000 (P4 1.7GHz / 758MB RAM) without Build Logging
Full compile with clean : 1h45

I still can't explain why the C++ compiler is this slow !

Has someone a suggestion ?

Arkam
Nov 17 '05 #1
5 1640
arkam wrote:
I still can't explain why the C++ compiler is this slow !

Has someone a suggestion ?


Do you use precompiled headers? Put all needed system headers in one
header file (even if you don't use them in all source files). This
file is usually called "stdafx.h", and if you create a MFC project
you'll find it, but it's not used for MFC only. There is a stdafx.cpp
also, but all it does is #include "stdafx.h".

So, replace all #include <> directives in all source files with one
"stdafx.h". This one #include must be the first directive in all
files, since everything before it will be ignored by compiler. Set
project option (of a sole PROJECT) to "Use precompiled headers", and
the same option of stdafx.cpp to "Create precompiled headers", and
rebuild the project... If you don't want some files to use this
feature set their option to "Not using precompiled headers".

Nov 17 '05 #2
Mihajlo Cvetanovic <ma*@RnEeMtOsVeEt.co.yu> wrote in message news:<3F**************@RnEeMtOsVeEt.co.yu>...
arkam wrote:
I still can't explain why the C++ compiler is this slow !

Has someone a suggestion ?


Do you use precompiled headers?


Nice try but yes :)

I am using precompiled headers.
Nov 17 '05 #3
AP
Interestingly I found that the time INCREASED slightly without build logging.
Nov 17 '05 #4
AP
Did you change any other option/setting etc. because I'm not seeing
even a 10% improvement with turning off build logging.
Thanks,
AP.
Nov 17 '05 #5
no

pa****@grex.org (AP) wrote in message news:<9e**************************@posting.google. com>...
Did you change any other option/setting etc. because I'm not seeing
even a 10% improvement with turning off build logging.
Thanks,
AP.

Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: chiefprogramer | last post by:
How to build up a good frame for a mathematical system and it's ultra-high-speed? Althought In PHP 5 there is a new Object Model. But I think the new Object Model is still very slow >< Just...
6
by: Jazper Manto | last post by:
hi i'm looking for a speed test of c# vs. c++. the test should be representative for mass data production. it should also include IO operations. can anybody give me a good link from the...
5
by: Michael | last post by:
i experience slower compile times with VC++ 2003 compared to VC+6.0. Anyone experiencing the same? Should that be expected? This ineed matters, when total compilation time is > 1h and you have to...
7
by: YAZ | last post by:
Hello, I have a dll which do some number crunching. Performances (execution speed) are very important in my application. I use VC6 to compile the DLL. A friend of mine told me that in Visual...
3
by: serge | last post by:
How do I determine which method I should use if I want to optimize the performance of a database. I took Northwind's database to run my example. My query is I want to retrieve the Employees'...
4
by: andrewcw | last post by:
I am moving some code forward from .NET 1.1. I was able to load the XSL file and perform the transform. The MSDN documentation looks like it should be easy. But I get a compile error. Ideas ?...
20
by: Frank-O | last post by:
Hi , Recently I have been commited to the task of "translating" some complex statistical algorithms from Matlab to C++. The goal is to be three times as fast as matlab ( the latest) . I've...
19
by: llothar | last post by:
I must say i didn't expect this. I just did some measures on FreeBSD 6.2 with gcc 3.4.6 and there is absolutely no significant difference between 32 and 64 bit mode - neither in compilation speed,...
5
by: Andrew Hedges | last post by:
Wherein I attempt to debunk some myths about the relative merits of the two methods for programmatically adding content to a web page: ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.