Re: VC++ 7.0 makes programs that run slower than VC++ 6.0

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Peter Olcott" <olcott@xxxxxxx> wrote in message
news:7YVrf.37854$QW2.11521@xxxxxxxxxxxxx
> "Alexander Grigoriev" <alegr@xxxxxxxxxxxxx> wrote in message
> news:%23H5M47jCGHA.1144@xxxxxxxxxxxxxxxxxxxxxxx
>> Before you jump to assembly, see if you do any expensive operations in
>> your "time-critical" function.
>>
>> You said you use std::string and std::vector of POD and structs. See if
>> you do any insertions/expansion in the vectors, vector assignments,
>> returning/passing strings and vectors by value. Can you post the function
>> code?
>
> No insertions or deletions, and no passing by value. No matter what I am
> doing, I am doing exactly the same thing for both compilers because I am
> compiling the exact same code. Another poster said that MS reduced the
> quality of their optimizations from 6.0 to 7.0, this would seem to be the
> only explanation besides differing compile options. I can't post the code
> it is the core component of a proprietary system.
>


Why not try downloading the DevPartner Community Edition profiler, then you
can find out the exact lines of code that are slowing things down:

http://www.compuware.com/media.asp?cid=3019X36


.



Relevant Pages

  • Re: VC++ 7.0 makes programs that run slower than VC++ 6.0
    ... > any insertions/expansion in the vectors, vector assignments, returning/passing ... I am doing exactly the same thing for both compilers because I am compiling the ... >> assembly language. ... Why would mixed compilation be risky? ...
    (microsoft.public.vc.mfc)
  • Re: What micros do you actually hate to work with?
    ... compilers for brand new chips usually don't produce optimal code. ... And the semantics of source code (and the ... points about holding closely to "zero or low execution time cost" ... I'd like to know of other exact equivalent application case studies ...
    (comp.arch.embedded)
  • Re: file copy routine
    ... but in CVF and several other compilers using following syntax: ... You are guaranteed an exact copy with identical #bytes in new file as old ...
    (comp.lang.fortran)
  • Re: file copy routine
    ... You are guaranteed an exact copy with identical #bytes in new file as old ... but until F2003 compilers become more ... times people waste far more time trying devise a "standard conforming" ... solution when a trivial extension such as this will suffice for the ...
    (comp.lang.fortran)
  • Re: VC++ 7.0 makes programs that run slower than VC++ 6.0
    ... >I am compiling the exact the same program with the two different compilers. ... >run a critical real-time function in a loop twenty times. ...
    (microsoft.public.vc.mfc)