473,395 Members | 1,679 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.

Assembly listing from g++

I am looking for the g++ command line option to gernerate an assembly listing with the C++ code embedded. Does anybody know how to get this listing?
Jul 22 '07 #1
3 3561
drhowarddrfine
7,435 Expert 4TB
g++ -S .
Jul 22 '07 #2
The -S option I know about. It's in the man page. But the assemby output is raw assembly. Rather difficult to read. I was hoping there was some esoteric way to combine the c source and the assembly. This is a common option in every compiler I have ever used before. Can g++ (or gcc) do this? Is there a utility? How do the LINUX guys debug C at the assemby code level?? Sometimes this is just plain neccessary.
Aug 3 '07 #3
drhowarddrfine
7,435 Expert 4TB
gdb and, if needed, its gui companion ddd.
Aug 3 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

19
by: Gernot Frisch | last post by:
Hi, I have 2 C code snippets that prodcue the same result. However A is 2x faster than B on my PC (x86) but 1.5x slower on my PDA (strongARM @ 206MhZ) // Startup conditions + types pSrc =...
3
by: Sapphira | last post by:
Hi, I have a dll written in c++. How do i get out of this an Assembly? How do I have to compile it? Thanks Sapphira
19
by: SU News Server | last post by:
I've struggled with this for quite a while and I'm am just not sure what is going on. I have the following code import os def buildList( directory='/Users/mkonrad' ) dirs = listing =...
3
by: David Jacques | last post by:
I am trying to get a list of all files of a certain extension type on disk to do some processing in a loop. The code needs to be portable to UNIX, so I need to use plain c functionality. Does...
0
by: Sebastian Meier | last post by:
Hi everyone, i have the following problem. I tried to import the file ICSharpCode.SharpZipLib.dll into my VS Project. The Result was the following. Warning: Dependence...
1
by: Edward Mitchell | last post by:
How can I get to see the assembly language listing for the C++ code that is displayed in the debugger. I seems like the VS 6.0 had a tool button that would show the assembly language interspersed...
1
by: Brian Henry | last post by:
I need to mark assemblies with a unique id (GUID in this case) and retrieve it when the assembly is loaded into my application (a plug-in loader)... the plug-in assembly all have a class in it...
2
by: Jan | last post by:
Regarding my post "CSharpCodeProvider: referencing other generated "InMemory" assembly" 4/27/2006 and the blog from Greg Young http://geekswithblogs.net/gyoung/archive/2006/04/27/76533.aspx I...
3
by: bilaribilari | last post by:
Hello, I have a huge application thats written in C and C++. The application crashes and I am trying to find a pattern to these crashes. I recently got my hands on the DrWatson log and the...
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...
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
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
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
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...
0
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...

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.