Re: ddkbuild.bat How to make free build but optomization off
- From: Mark Roddy <markr@xxxxxxxxxxxxxx>
- Date: Thu, 01 Sep 2005 23:46:42 -0400
RonM wrote:
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.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-
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 .
- Follow-Ups:
- Re: ddkbuild.bat How to make free build but optomization off
- From: Calvin Guan
- Re: ddkbuild.bat How to make free build but optomization off
- From: RonM
- Re: ddkbuild.bat How to make free build but optomization off
- References:
- Prev by Date: Re: device instalation
- Next by Date: how does GDI handle cursor?
- Previous by thread: Re: ddkbuild.bat How to make free build but optomization off
- Next by thread: Re: ddkbuild.bat How to make free build but optomization off
- Index(es):
Relevant Pages
|