473,508 Members | 4,179 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Assembly listing from g++

5 New Member
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 3565
drhowarddrfine
7,435 Recognized Expert Expert
g++ -S .
Jul 22 '07 #2
TimTrudeau
5 New Member
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 Recognized Expert Expert
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
1767
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
1144
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
3290
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
2025
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
2990
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
1424
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
5434
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
1636
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
1614
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
7228
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
7332
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
7393
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...
1
7058
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
5635
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
5057
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
3191
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1565
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 ...
0
426
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...

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.