Monday, March 2, 2009

Generate MAP and COD files from Windows CE build

The MAP and COD files have essential debugging information. COD file contains disassembler and mnemonic codes. After calculating offset address using MAP and COD file, you're able to trace exact line of code which may cause a data abort.

It needs to make sure that every release generates those files and keep them for later use. The following build environment variables should be set to generate MAP and COD files during build.
set WINCECOD=1
set WINCEMAP=1
Instead of setting build environment variables , the 'sources' file may include the following in it.
WINCECOD=1
WINCEMAP=1
When using Visual Studio, you can set the options on the property pages of application project.