Solved

Get the assembly code..

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
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.

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now