Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C4309 warning Pin
Rakesh530-Jul-10 4:18
Rakesh530-Jul-10 4:18 
GeneralRe: C4309 warning Pin
Cedric Moonen30-Jul-10 4:24
Cedric Moonen30-Jul-10 4:24 
GeneralRe: C4309 warning Pin
Chris Losinger30-Jul-10 4:25
professionalChris Losinger30-Jul-10 4:25 
QuestionHow reduce build time of the project? Pin
ganesh.dp30-Jul-10 3:04
ganesh.dp30-Jul-10 3:04 
AnswerRe: How reduce build time of the project? Pin
Sauro Viti30-Jul-10 3:19
professionalSauro Viti30-Jul-10 3:19 
AnswerRe: How reduce build time of the project? Pin
Maximilien30-Jul-10 4:46
Maximilien30-Jul-10 4:46 
AnswerRe: How reduce build time of the project? Pin
Abhi Lahare30-Jul-10 8:15
Abhi Lahare30-Jul-10 8:15 
AnswerRe: How reduce build time of the project? Pin
Aescleal30-Jul-10 20:49
Aescleal30-Jul-10 20:49 
There's loads of ways to speed up build time by writing your source code to build fast:

- The main one is reduce dependencies between compilation units. Don't include things that you can get away with forward declaring and don't do daft things like have single include files with global lists of error codes

- Use interfaces and parameterise from above (PFA) to decouple class implementations from each other

- Use PIMPLs to hide implementation details of classes. Don't use protected or private member functions in your base classes

- Use DLLs and libraries to help you reduce dependencies and DLLs to reduce link time

- (Controversial) Don't use precompiled headers, or if you must only include stuff that's not going to change (standard library headers, third party library headers e.g. boost headers, windows headers). Hiding OS interfaces under portable ones will help speed up your builds as using portable interfaces don't require dragging in loads of OS headers

Generally if you're talking less than a second on average to compile each source file and less than 10 seconds for a link there's probably not a lot of reason to try and speed things up more. Another option would be to invest in a newer compiler - VC++2010 has loads of advantages for building over VC6 even if you don't care about the other things like standards compliance and C++0x features.

Have a look in "Exceptional C++" by Herb Sutter and "Large Scale C++ Design" by John Lakos for more ideas along these lines.

Cheers,

Ash
QuestionWriteFile returning zero and GetLastError returning 997(ERROR_IO_PENDING) Pin
learningvisualc30-Jul-10 2:59
learningvisualc30-Jul-10 2:59 
AnswerRe: WriteFile returning zero and GetLastError returning 997(ERROR_IO_PENDING) Pin
Cool_Dev30-Jul-10 3:37
Cool_Dev30-Jul-10 3:37 
AnswerRe: WriteFile returning zero and GetLastError returning 997(ERROR_IO_PENDING) Pin
Xequen30-Jul-10 4:09
Xequen30-Jul-10 4:09 
QuestionQuestion Authentication client-server using message queues in c language Pin
ralph 230-Jul-10 2:47
ralph 230-Jul-10 2:47 
AnswerRe: Question Authentication client-server using message queues in c language Pin
Yusuf30-Jul-10 2:55
Yusuf30-Jul-10 2:55 
AnswerRe: Question Authentication client-server using message queues in c language Pin
Sauro Viti30-Jul-10 2:58
professionalSauro Viti30-Jul-10 2:58 
GeneralRe: Question Authentication client-server using message queues in c language Pin
ralph 230-Jul-10 3:04
ralph 230-Jul-10 3:04 
GeneralRe: Question Authentication client-server using message queues in c language Pin
Richard MacCutchan30-Jul-10 3:23
mveRichard MacCutchan30-Jul-10 3:23 
GeneralRe: Question Authentication client-server using message queues in c language Pin
ralph 230-Jul-10 3:30
ralph 230-Jul-10 3:30 
GeneralRe: Question Authentication client-server using message queues in c language Pin
Cedric Moonen30-Jul-10 3:33
Cedric Moonen30-Jul-10 3:33 
GeneralRe: Question Authentication client-server using message queues in c language Pin
ralph 230-Jul-10 3:40
ralph 230-Jul-10 3:40 
GeneralRe: Question Authentication client-server using message queues in c language Pin
Richard MacCutchan30-Jul-10 3:54
mveRichard MacCutchan30-Jul-10 3:54 
GeneralRe: Question Authentication client-server using message queues in c language Pin
ralph 230-Jul-10 4:05
ralph 230-Jul-10 4:05 
GeneralRe: Question Authentication client-server using message queues in c language Pin
Richard MacCutchan30-Jul-10 6:30
mveRichard MacCutchan30-Jul-10 6:30 
GeneralRe: Question Authentication client-server using message queues in c language Pin
ralph 230-Jul-10 10:54
ralph 230-Jul-10 10:54 
GeneralRe: Question Authentication client-server using message queues in c language Pin
Richard MacCutchan30-Jul-10 22:26
mveRichard MacCutchan30-Jul-10 22:26 
GeneralRe: Question Authentication client-server using message queues in c language Pin
ralph 230-Jul-10 22:47
ralph 230-Jul-10 22:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.