473,657 Members | 2,516 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 2325
ch**********@gm ail.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_file name

Mohan
<ch**********@g mail.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.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**********@g mail.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.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**********@g mail.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.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
15190
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
2224
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 understand it, is normal. However, when i stop the debugger, the "Disassembly" tab does not dissapear and remains a part of the main tab space and the tab cannot be closed. This doesn't happen everytime i run the debugger, only sometimes, and i'm not...
0
1692
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?? TIA introspectre
0
955
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
11798
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, and sometimes don't. Just wonder what is the meaning of this? Do I need to concern of any wrong doing in my program or codes? Thanks in advance.
4
13425
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 new tab in VB.NET titled Disassembly. My guess is I checked an option to view the disassembly every time. However, I really don't want this to happen! Does anybody know how to turn this off again?
6
5048
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 business had dwindled to the point where we were the last company to use their software so we purchased the source and brought development in house. We have now found that our source is out of date for one of the components. The component was...
2
1677
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 to view disassembly.) Where is this coming from? What is making it appear? I'm working on just a standard windows application. No web stuff.
1
4117
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 ever once goes to disassembly view, it will ALWAYS change to disassembly view when I step thru code until I quit VS.NET and restart. (2005 original needed a restart; SP1 sometimes even seems to want to show disassembly while stepping thru code after...
11
4408
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 feature which turns on Disassembly Window at the end of every my program (basic example below). int main() { //some instructions;
0
8324
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8842
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8617
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7353
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5642
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.