Thread: A C decompiler

  1. #1
    Registered User
    Join Date
    Sep 2011
    Posts
    111

    A C decompiler

    Hello I am trying to locate a free decompiler that will allow me to view the C code of a *.o file, which came from a library file *.o files came from the ar command of the library file).

    I found a couple of them, such as C-Decompiler and boomerang, but for some reason they are not working and I haven't been able to find documentation on how to use them.

    And it is no problem to send the library file if someone has one and is willing to do it.

    Thank You

  2. #2
    Make Fortran great again
    Join Date
    Sep 2009
    Posts
    1,413
    Why do you want to decompile an object file?

  3. #3
    Registered User gardhr's Avatar
    Join Date
    Apr 2011
    Posts
    151
    Quote Originally Posted by Strahd View Post
    Hello I am trying to locate a free decompiler that will allow me to view the C code of a *.o file, which came from a library file *.o files came from the ar command of the library file).

    I found a couple of them, such as C-Decompiler and boomerang, but for some reason they are not working and I haven't been able to find documentation on how to use them.

    And it is no problem to send the library file if someone has one and is willing to do it.

    Thank You
    A tool that can handle all types of object files is probably not going to be easy to find simply because the format is so compiler dependent. On the other hand, decompilers for executable formats (ELF, PE, etc) are quite common.

  4. #4
    Technical Lead QuantumPete's Avatar
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    894
    I've not worked much with decompilers so I may be wrong here, but afaik they don't produce nice-to-read C code. Since a lot of information is lost in turning the code into object files (such variable names or statement structure, whitespace, etc) the decompiler has to take a best-guess approach in recreating this information. Take a look at Boomerang's Can-Do page.
    "No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
    "Have you tried turning it off and on again?" - The IT Crowd

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Gamemaker decompiler????
    By Jetmir in forum Tech Board
    Replies: 7
    Last Post: 07-01-2004, 12:57 PM
  2. c++ decompiler
    By gamer in forum C++ Programming
    Replies: 2
    Last Post: 03-20-2004, 08:01 AM
  3. Flash Decompiler
    By Daniel in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 06-15-2003, 02:04 PM
  4. VC++ decompiler
    By samudrala_99 in forum Windows Programming
    Replies: 1
    Last Post: 01-29-2003, 04:31 AM
  5. Decompiler for *.exe made in c/c++
    By shagauravh in forum C Programming
    Replies: 7
    Last Post: 09-22-2001, 07:48 PM