473,503 Members | 1,725 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disassembly in g++ ?

Hello,

I was thinking if their is a way to get the generated assembly code for
a cpp source program with g++.

Thanks.

Jul 23 '05 #1
4 2316
ch**********@gmail.com wrote:
I was thinking if their is a way to get the generated assembly code for
a cpp source program with g++.


See the -S command line option. Also, consider next time posting to
gnu.g++.help newsgroup. Your question is off-topic here. Thanks.
Jul 23 '05 #2
objdump -d executable_filename

Mohan
<ch**********@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Hello,

I was thinking if their is a way to get the generated assembly code for
a cpp source program with g++.

Thanks.

Jul 23 '05 #3
readelf exe_fname

mohan
<ch**********@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Hello,

I was thinking if their is a way to get the generated assembly code for
a cpp source program with g++.

Thanks.

Jul 23 '05 #4
invincible wrote:
readelf exe_fname

mohan
<ch**********@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Hello,

I was thinking if their is a way to get the generated assembly code for
a cpp source program with g++. ^^^^^^^^^^^^^^^^^^
Thanks.


I tried both your suggestions (readelf and objdump) and neither worked on
my _source_program_. Besides, they both seem to be *not* g++... Makes me
wonder whether you read the message before replying. Probably not because
in that case you'd be replying *below* the message not *above* it. Of
course I can be easily mistaken. In that case, sorry.
Jul 23 '05 #5

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

Similar topics

1
15180
by: leon | last post by:
Hello everybody. The question is easy, are there some powerful tool to do disassembly to dll files, that were create in C# ? Thanks by great help... leon.
0
2215
by: C Newby | last post by:
I don't know what i did, but when I run a windows form application from the Visual Studio debugger, a new tab shows up in the main document tab space with the title "Disassembly". This, as i...
0
1684
by: wurlds_wurst_coder | last post by:
A co-worker apparently checked the Show Disassembly Automatically checkbox at some point. This is really inconvenient to disassemble every dll we use everytime. How do I turn this option OFF??...
0
935
by: JW | last post by:
As I am working I end up with 3-4 Disassembly tabs. How the heck to I get rid of them??? As I try to hide them another one pops up.
2
11761
by: kjon | last post by:
When I try to run any project, sometimes I will encounter this tab window in the IDE which has the following message: "Disassembly cannot be displayed in run mode". I mean it'll show sometimes,...
4
13401
by: Matthew | last post by:
I had an error in a program I was working on. A dialog box came up saying "do you want to view Disassembly?" I clicked OK just for the fun of it, and now every time I run the program it opens a...
6
5033
by: Caveman | last post by:
Hello, My company recently purchased source code from a company we have been doing business with for several years. In the past, they have done all of the development for this product. Their...
2
1666
by: cj | last post by:
Recently for no apparent reason VB 2003 has been opening a Disassembly tab along with Form1.Vb, Start Page, etc. The Disassembly tab has in it Address and a text box followed by (Enter an address...
1
4108
by: Nathan Mates | last post by:
I'm using VS.NET 2005SP1 (C++ Express, though I've also seen this on 2005 Standard SP1). One bit of behavior that's been bugging me a lot, and seems to have gotten worse with SP1, is that if it...
11
4386
by: Herhor | last post by:
Hello! I have already started C++ programming with VC++ 2005 Express Edition. Unfortunately during debugging one of my first programs I had to unintentionally enable some debugger configuration...
0
7202
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
7086
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7280
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.