Solved

Get the assembly code..

Posted on 2000-03-31
2
287 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

831 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