473,395 Members | 1,554 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to view compiled code?

I am compiling standard C++ code into native binary code, and I would
like to have a look at the binary code generated by the compiler in
Release mode. How to do that under .NET 2003?

Thanks!

B
Nov 17 '05 #1
4 2314
"Bolin" <ga*******@voila.fr> wrote in message
news:93**************************@posting.google.c om...
I am compiling standard C++ code into native binary code, and I would
like to have a look at the binary code generated by the compiler in
Release mode. How to do that under .NET 2003?


This link describes the /FA (file - assembly) compiler option:

http://msdn.microsoft.com/library/de...ore_.2f.fa.asp

If you want to inspect the machine code at runtime then from the Debug menu
choose Windows and then Disassembly. In that view the IDE does the right
thing, i.e. single step means single machine instruction step.

Regards,
Will
Nov 17 '05 #2
Thanks for your answer. The /FA option indeed provides the information
I want. Does the IDE propose a way to navigate through it though? The
main issue here is to jump to the corresponding piece of code each
time a function is called. The disassembly proposed by the Debug menu
works just great, but just for Debug, and here I want to look
exclusively at the Release. Any ideas?

Thanks

B.

William DePalo wrote in message news:<e4**************@TK2MSFTNGP09.phx.gbl>...
"Bolin" <ga*******@voila.fr> wrote in message
news:93**************************@posting.google.c om...
I am compiling standard C++ code into native binary code, and I would
like to have a look at the binary code generated by the compiler in
Release mode. How to do that under .NET 2003?


This link describes the /FA (file - assembly) compiler option:

http://msdn.microsoft.com/library/de...ore_.2f.fa.asp

If you want to inspect the machine code at runtime then from the Debug menu
choose Windows and then Disassembly. In that view the IDE does the right
thing, i.e. single step means single machine instruction step.

Regards,
Will

Nov 17 '05 #3
Bolin wrote:
Thanks for your answer. The /FA option indeed provides the information
I want. Does the IDE propose a way to navigate through it though? The
main issue here is to jump to the corresponding piece of code each
time a function is called. The disassembly proposed by the Debug menu
works just great, but just for Debug, and here I want to look
exclusively at the Release. Any ideas?


It works for release builds as well. You may want to enable debug info for
your release configuration (it's enabled by default in VC7 and later).

-cd

Nov 17 '05 #4
"Bolin" <ga*******@voila.fr> wrote in message
news:93**************************@posting.google.c om...
Thanks for your answer.
You are welcome.
The disassembly proposed by the Debug menu
works just great, but just for Debug, and here I want to look
exclusively at the Release. Any ideas?


Yeah, debug the Release version. :-)

A release version can be set to generate an external debug file (.pdb)
("program database" file). You should be able to set a breakpoint at the
entry to whatever function troubles you. A "problem" here is that
optimizations and inlining cause the generated code to differ markedly from
the written code. Now that's what one wants in a release build but it does
make debugging the release build a more trying experience. :-(

Regards,
Will
Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: NB | last post by:
Hi Is there any way to call up the query design view from code? In my compiled-as-MDE app everything is hidden from end users. However, I want advanced user to have access to the query design...
4
by: John Smith | last post by:
My program includes a use of strstr(). It looks like this: if(strstr(*str1, *str2) ........... After compiling the code, I opened the program with a hex editor (this is on Windows). Sure...
1
by: Mel | last post by:
i have a need to access variables from outside of my applications. i need to parse the compiler created symbol tables and store them so that i can reference them later. these include C++ object...
0
by: nano2k | last post by:
Hi I develop a client/server application using webservices. So, I have a client app and a webservice that responds to client app requests - nothin' new. In certain circumstances (namely, when...
1
by: Brett Wesoloski | last post by:
Ok in trying to figure out why I could not change teh Applicaiton.Run I found something else that is probably causing it. I left the program as Application.Run(new Login()); then in the...
11
by: cooltoriz | last post by:
Hello there, I just found that the compiled code won't hide the string variables so that I can see them by opening the execuable using Notepad. I have couple applications that have password...
2
by: CodeMonkey775 | last post by:
I'm having problems passing a variable to a method which is executed and compiled using CodeDom. The situation is I have a List<CellData> with cells, each containing a formula (like Excel). I am...
1
by: mopiforu | last post by:
Hi all, I have a Compiled code(C++) which has to be called in called in perl script to process fro it. could anyone let me know how to execute a compiled code(C++) in perl . thankyou, Mopi.
4
by: lander | last post by:
If I create a page, then it's compiled upon first request, where can i find the compiled code? And another question, since aspnet_wp.exe is recycled sometimes, so session would get lost and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.