Jump to content
Tuts 4 You

MaxSpeedHighLevel in Visual Studio ???


CodeExplorer

Recommended Posts

Posted

I use Visual Studio 2010 Enterprise!
In a Visual Studio project barswf_cpu.vcxproj I've saw this
<ClCompile>
      <Optimization>MaxSpeedHighLevel</Optimization>

Apparently this value is not valid,
https://docs.microsoft.com/en-us/cpp/build/reference/o-options-optimize-code?view=vs-2019

I've replaced that (MaxSpeedHighLevel) with:
    <ClCompile>
      <Optimization>MaxSpeed</Optimization>

Now compiles, the problem is that speed is of 45 MHashes/second instead of 60 MHashes/seconds (in already compiled exe by someone else) - so the speed is 25% slower.

Anyone know what is with MaxSpeedHighLevel ???
And more important how to improve speed?
 

Posted

Intel C++ Compiler v11.xx supports Visual Studio 2008 and not latter VS like 2010
Intel Parallel Studio XE 2013 - Intel(R) C++ Composer XE 2013 SP1
includes Intel C++ Compiler and supports Visual Studio 2010.

You should include the lib folder (in Library Directories):
C:\Program Files\Intel\Composer XE 2013 SP1\compiler\lib\ia32
AND NOT
C:\Program Files\Intel\Compiler\11.1\067\lib\ia32

Anyway after compiling with /O3 optimizations the speed is slower then with Visual C++ /O2 optimizations!
 

Posted

With Intel C++ Compiler the /O2 optimization is faster then /O3 optimization ! :blink::wacko:
What?
 

Posted

There are no guarantees O3 will be faster in all scenarios.

/Os perhaps?

Ted.

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...