Click here to Skip to main content
15,903,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: undo redo in console application with an operation Pin
Eytukan30-Nov-09 6:49
Eytukan30-Nov-09 6:49 
QuestionHelp with some memory - null issue Pin
alonchap30-Nov-09 3:49
alonchap30-Nov-09 3:49 
AnswerRe: Help with some memory - null issue Pin
Richard MacCutchan30-Nov-09 3:58
mveRichard MacCutchan30-Nov-09 3:58 
AnswerRe: Help with some memory - null issue Pin
David Crow30-Nov-09 5:36
David Crow30-Nov-09 5:36 
Questionconvert char to string Pin
nuttynibbles30-Nov-09 3:29
nuttynibbles30-Nov-09 3:29 
AnswerRe: convert char to string Pin
Richard MacCutchan30-Nov-09 3:56
mveRichard MacCutchan30-Nov-09 3:56 
AnswerRe: convert char to string Pin
«_Superman_»30-Nov-09 14:39
professional«_Superman_»30-Nov-09 14:39 
QuestionMinimized link time of C++ applications Pin
Fred Hebert30-Nov-09 2:47
Fred Hebert30-Nov-09 2:47 
We are using visual studio to build our applications. Our biggest concern is link time especially for debug target. I list bellow what we tried to minimized link time and what were the gain. If you have others suggestions, reply to my post.

Note that I post a suggestion on “Microsoft Connect” titled “Optimize link time in real developers environment”, feel free to vote for it at : https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=511300&wa=wsignin1.0

1 - Convert many statics libraries to DLLs. Important gain.

2 - Remove debug information for libraries who are rarely debugged (good gain).

3 - Delete PDB file in « Pre-Build Event » (strangely it give interesting gain ex: 2min44 instead of 3min34).

4 - Working with computer equiped with lot of RAM in order to maximize disk cache. The biggest gain. Same computer can link 20 times faster with 16GB instead of 2GB. More than 16GB change nothing.

5 - Big obj versus small obj. No difference.

6 - Use secret linker switch /expectedoutputsize:120000000. Small gain.

7 - Maximize Internal linkage vs External linkage. It's a good programming practice.

8 - IncrediLink (IncrediBuild give interesting gain for compilation but almost no gain for link).

9 - Explicit template instantiation to reduce code bloat. Small gain.

10 - Partial template specialization to decrease the number of symbols. Small gain.

11 - Change project options (/Ob1, /INCREMENTAL, Enable COMDAT folding, Embedding manifest, etc.). Some give interesting gain other not. We try to continuously maximize our settings.

12 - Separate software component as much as we can afford to minimize dependencies. You can then work in unit test that link fast. But we still have to integrate things together, we have legacy code and we worked with third party components.

Note that for all our experimentations, we meticulously measured link time to ensure repeatability.

Thanks
AnswerRe: Minimized link time of C++ applications [modified] Pin
Rolf Kristensen3-Dec-09 11:35
Rolf Kristensen3-Dec-09 11:35 
GeneralRe: Minimized link time of C++ applications Pin
Fred Hebert10-Dec-09 11:38
Fred Hebert10-Dec-09 11:38 
GeneralRe: Minimized link time of C++ applications Pin
Rolf Kristensen10-Dec-09 12:02
Rolf Kristensen10-Dec-09 12:02 
GeneralRe: Minimized link time of C++ applications Pin
Rolf Kristensen6-Jan-10 9:31
Rolf Kristensen6-Jan-10 9:31 
GeneralRe: Minimized link time of C++ applications Pin
Fred Hebert18-May-10 9:06
Fred Hebert18-May-10 9:06 
GeneralRe: Minimized link time of C++ applications Pin
Rolf Kristensen18-May-10 9:11
Rolf Kristensen18-May-10 9:11 
QuestionReg. win32_find_data dwFileAttributes value Pin
Rakesh530-Nov-09 2:25
Rakesh530-Nov-09 2:25 
AnswerRe: Reg. win32_find_data dwFileAttributes value Pin
Covean30-Nov-09 3:15
Covean30-Nov-09 3:15 
AnswerRe: Reg. win32_find_data dwFileAttributes value Pin
CPallini30-Nov-09 3:22
mveCPallini30-Nov-09 3:22 
QuestionHow to convert hundreds of VS2005 soltions to VS2008? Pin
coder21k30-Nov-09 2:18
coder21k30-Nov-09 2:18 
AnswerRe: How to convert hundreds of VS2005 soltions to VS2008? Pin
T210230-Nov-09 2:30
T210230-Nov-09 2:30 
GeneralRe: How to convert hundreds of VS2005 soltions to VS2008? Pin
KarstenK30-Nov-09 3:41
mveKarstenK30-Nov-09 3:41 
GeneralRe: How to convert hundreds of VS2005 soltions to VS2008? Pin
coder21k30-Nov-09 17:35
coder21k30-Nov-09 17:35 
AnswerRe: How to convert hundreds of VS2005 soltions to VS2008? Pin
Joe Woodbury30-Nov-09 9:28
professionalJoe Woodbury30-Nov-09 9:28 
AnswerRe: How to convert hundreds of VS2005 soltions to VS2008? Pin
22491730-Nov-09 14:52
22491730-Nov-09 14:52 
Questionhow to search for a record in a file. Pin
santhosh-padamatinti30-Nov-09 2:17
santhosh-padamatinti30-Nov-09 2:17 
AnswerRe: how to search for a record in a file. Pin
dxlee30-Nov-09 3:42
dxlee30-Nov-09 3:42 

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.