Assembly listing from g++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TimTrudeau
    New Member
    • Apr 2007
    • 5

    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?
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    g++ -S .

    Comment

    • TimTrudeau
      New Member
      • Apr 2007
      • 5

      #3
      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.

      Comment

      • drhowarddrfine
        Recognized Expert Expert
        • Sep 2006
        • 7434

        #4
        gdb and, if needed, its gui companion ddd.

        Comment

        Working...