• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 296
  • Last Modified:

Get the assembly code..

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
wayud
Asked:
wayud
1 Solution
 
makerpCommented:
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
 
wayudAuthor Commented:
thanks for your help..
appreciate it..
0

Featured Post

Technology Partners: 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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now