Duane,

Try adding [BuildOptions] to your DSC file.

[BuildOptions]
  MSFT:*_*_*_CC_FLAGS = /Od

This appends /Od to the end of the set of flags for every compile operation.  
For VS compilers the last /O option wins.

Mike

From: Duane Voth [mailto:[email protected]]
Sent: Thursday, March 07, 2013 3:16 PM
To: [email protected]
Subject: [edk2] can we disable optimizations?

Tried today to change the VS2008 compile options from the variety of values 
(/Oi- /O1bi2s etc.) to /Od and ran into several issues.  (1) is that there 
isn't one place where we can set a single optimization value.  But it looks 
like StdLib libs and AppPkg apps actually require different levels of 
optimizations as various intrinsic functions (like abs and memcpy) are not 
implemented - thus requiring the compiler to provide them.  Has anyone managed 
to disable VS2008 optimizations in EDK2?

Why would I try this?  Various stack dump utilities I have claim to be able to 
understand un-optimized MSC++ stack frames and they arn't working.  The 
suggestion was made to try to disable optimization.

So I reverted all my .inf file changes and then got this:

c:\.....\edk2\stdlib\libc\gdtoa\strtodg.c(628) : warning C4700:
uninitialized local variable 'rv' used

which is treated as an error and causes the build to fail.  So, (2) has anyone 
seen this problem in strtodg?

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to