Decoding g++ executables

This is a discussion on Decoding g++ executables within the Linux Programming forums, part of the Platform Specific Boards category; Out of curiosity, is there a way to extract the machine code encoded in .o files into a human readable, ...

  1. #1
    Registered User
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    80

    Decoding g++ executables

    Out of curiosity, is there a way to extract the machine code encoded in .o files into a human readable, say, .cpp file?

  2. #2
    Climber spoon_'s Avatar
    Join Date
    Jun 2002
    Location
    ATL
    Posts
    182
    If there was a way, identifiers would not have their names preserved and the code would be difficult to make sense of.
    {RTFM, KISS}

  3. #3
    Disrupting the universe Mad_guy's Avatar
    Join Date
    Jun 2005
    Posts
    258
    You mean like a decompiler? If that's the case, you might want to check out Boomerang, it's been used to recover actual code from executables, but I believe it's still considered beta.
    operating systems: mac os 10.6, debian 5.0, windows 7
    editor: back to emacs because it's more awesomer!!
    version control: git

    website: http://0xff.ath.cx/~as/

  4. #4
    Climber spoon_'s Avatar
    Join Date
    Jun 2002
    Location
    ATL
    Posts
    182
    And on that note, good luck.
    {RTFM, KISS}

  5. #5
    Registered User
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    80
    thanks, i agree still in alpha : ) but nevertheless, nice try!

  6. #6
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,558
    > is there a way to extract the machine code encoded in .o files into a human readable
    Well you can use objdump to get back to the assembler very easily.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help decoding base_64+GZipped string
    By Zeokat in forum C# Programming
    Replies: 3
    Last Post: 12-05-2008, 04:06 PM
  2. making self contained executables?
    By m37h0d in forum C++ Programming
    Replies: 18
    Last Post: 03-30-2008, 06:27 PM
  3. Embedding resources into executables
    By Marcos in forum Linux Programming
    Replies: 2
    Last Post: 07-12-2007, 04:59 PM
  4. Small executables in VC++ 8
    By Bleech in forum Windows Programming
    Replies: 3
    Last Post: 06-20-2007, 08:28 AM
  5. STL + MSVC++ = big executables ?
    By teneniel in forum C++ Programming
    Replies: 6
    Last Post: 11-04-2002, 01:12 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21