How to generate assembly code files

Source: Internet
Author: User

// ================================================ ========================================
// 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 ).

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.