// ================================================ ========================================
// Title:
// How to generate an assembly code file
// Author:
// Norains
// Date:
// Friday 21-December-2007
// Environment:
// Evc4.0 + Windows CE 5.0 standard SDK
// Evc4.0 + SDK-WINCE5.0-MIPSII
// Vs2005 + SDK-WINCE5.0-MIPSII
// ================================================ ========================================
In Visual Studio, you can easily generate an assembly code file by setting it to detect the generated assembly code to identify some exceptions that are not noticeable.
1. EVC 4.0
Choose "project> Project Settings", select the "C/C ++" tab, and select "listing Files" in the "category" column ", in the "listing file type" column, select "assembly with machine code ". After the project is re-compiled, the. COD file with the same name as each. cpp file is displayed in the output directory.
1:
2. Visual Studio 2005
"Project" --> "XXX properties" (xxx indicates but the previous project name, you can also use the shortcut key Alt + F7 ), select "C/C ++" for the "configuration properties" list item in the left-side window, select "output files", and then select "amssembler output" in the right-side window and select "assembly, machine code, and source ". after re-compiling the project, you can see that. CPP with the same name. cod file.
2:
3. Meaning of options:
Assembly-only listing: generate only the assembly code file (. ASM extension );
Assembly with machine code: generate machine code and assembly code files (. COD extension );
Assembly with source code: Generate source code and assembly code file (. ASM extension );
Assembly, machine code, and Source: generate machine code, source code, and assembly code file (. COD ).