Re: ddkbuild.bat How to make free build but optomization off

Tech-Archive recommends: Fix windows errors by optimizing your registry



RonM wrote:
I searched in recent posts but did not see anything, although I am sure that someone must have
covered it.
We noticed that our debug built network driver runs faster (more throughput) than our free built
driver.
I want to build a free driver but turn compiler optimization off to see if that type of build will
run as fast as the checked or debug build.
Thanks
-Ron-


Not really a ddkbuild.bat issue - this is a compiler options issue. See the documentation for MSC_OPTIMIZATION in the ddk help. And do let us know if you come up with a compiler horror story, those are always fascinating.

Here - I had to look it up anyhow:

"Use the MSC_OPTIMIZATION macro to override the default optimization that the Build utility uses on the compiler. By default, everything is optimized. If you want to turn off optimization in order to step through your code, you can set the MSC_OPTIMIZATION value to whatever is appropriate for your compiler.

When building in a checked build environment of the Windows DDK, this value is set to /Od /Oi. This avoids all optimization. All of these flags also have platform-specific variants."

That ought to do it.

--

=====================
Mark Roddy DDK MVP
Windows 2003/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com
.



Relevant Pages

  • Re: PXA255, same hw speed, 4.2 vs 4.1, slower performance
    ... Intel provides a C/C++ compiler that should ... > this function slower in CE 4.2 vs 4.1, or is there an optimization ... You may use kernel tracker to understand if a process (or a driver) ... The display driver is 50% faster on the old board using a test ...
    (microsoft.public.windowsce.platbuilder)
  • Re: spca5xx freezes system
    ... the driver code rather than GCC. ... the C compiler has gotten better at optimization, ... where the driver needed to use "volatile" or some similar mechanism. ...
    (Fedora)
  • Re: spca5xx freezes system
    ... | also existed with an official kernel.org kernel too. ... the C compiler has gotten better at optimization, ... where the driver needed to use "volatile" or some similar mechanism. ...
    (Fedora)
  • Re: Brian Kernighan, maybe Im not worthy, maybe Im scum
    ... what experienced programmers do, ... optimization, ... Thugs" ad nauseum fits that a lot more closely than discussing compiler ... be modified outside a loop, and guessing ...
    (comp.programming)
  • long(!) Re: need help on CFLAGS in /etc/make.conf please
    ... For example, MPlayer sets this high on purpose, so GCC will actually ... and the K&R compiler would've known exactly the kind of optimization we wanted. ... >> A msg from Richard Coleman, taken together with the GCC 3.x Known Bugs ...
    (freebsd-questions)