Solved

Get the assembly code..

Posted on 2000-03-31
2
290 Views
Last Modified: 2010-04-15
I use MS Visual C++ 6 to compile and run my C code..
But now I want to analyze the resulting assembly code of the code..
How can I do that with visual C??
What setting I should set?
0
Comment
Question by:wayud
2 Comments
 
LVL 10

Accepted Solution

by:
makerp earned 50 total points
ID: 2672513
go to project settings and on the c/c++ tab and put /FA in the project options. this will product a .asm file for each resulting .obj file. the .asm file will be put in the debug directory

This option creates a listing file. The listing file always contains assembly code. The optional arguments control the generation of source code and machine code and the extension of the listing file as follows:


/FA
 Assembly-Only Listing
 Assembly code; .ASM
 
/FAc
 Assembly With Machine Code
 Machine and assembly code; .COD
 
/FAs
 Assembly With Source Code
 Source and assembly code; .ASM
 
/FAcs
 Assembly, Machine Code, and Source
 Machine, source, and assembly code; .COD
 
/Fafilename
 Listing File Name
 Use /Fa to specify a directory and/or filename for the selected type of listing file. By default, the base name of the listing file is the base name of the source file.
 
0
 

Author Comment

by:wayud
ID: 2672585
thanks for your help..
appreciate it..
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question