To anaylze some exception, weneed to check the PC address hit in which function, so we need 2 files help usto locate the function, they are .map and .cod file


1) VS2008

Default, VS will not generatethe .map and .cod files, we need to modify the property

Properties->ConfigurationProperties->Linker->Debugging->Generate Map File, select “Yes(/MAP)”

Properties->ConfigurationProperties->C/C++->Output Files->Assembler Output, select “Assembly,Machine Code And Source (/FAcs)”


2)WINCE

Set environment value WINCEMAPand WINCECOD to 1, you can using “set” command in command control, or type“WINCECOD=1” in one ormore sources file, in this case, it will build one or more module