Thread: How to convert object file back to readable?

  1. #1
    Yin
    Guest

    Question How to convert object file back to readable?

    I have converted some c++ file to object file by my Cygwin. The command is "g++ -c -o program.o program.cc" . program.cc is my original c++ source code.
    Now, program.o is unreadable at least by notepad. So, it there any way to read it? Maybe by some "converter" or by some amazing text editor?
    Thanks.

  2. #2
    Yin
    Guest
    Sorry for re-posting. I just want to clarify that "unreadable" here means human-unreadable only. The program itself is still 100% ok.

  3. #3
    Registered User
    Join Date
    Feb 2002
    Posts
    114
    Are you trying to decompile the code or what?? reverse engineering?

  4. #4
    Yin
    Guest
    Originally posted by ninebit
    Are you trying to decompile the code or what?? reverse engineering?
    Actually, I am just wondering whether it is save to give out the object file. Because I want to keep the content of my program secret. If there is method to make it readable, then I will probably not give out the object file.

  5. #5
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    Make sure there is no debug information in your object file. Look into your compilers helpfile how to turn debug on/off.

    In a release build, the object file should be safe from the casual observer. There is no easy way to reverse the compiling process.

    However, professional code breakers and assembly veteran's will have no problem with it. You won't face many of them though... it's cheaper to hire someone to write your code again than to find out how you did it.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  6. #6
    Yin
    Guest
    Originally posted by nvoigt
    Make sure there is no debug information in your object file. Look into your compilers helpfile how to turn debug on/off.

    In a release build, the object file should be safe from the casual observer. There is no easy way to reverse the compiling process.

    However, professional code breakers and assembly veteran's will have no problem with it. You won't face many of them though... it's cheaper to hire someone to write your code again than to find out how you did it.
    1. Why "no debug information" is important?
    2.What do you mean by "release build"? I use Cygwin B20 (g++ compiler). Is it safe then?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A development process
    By Noir in forum C Programming
    Replies: 37
    Last Post: 07-10-2011, 10:39 PM
  2. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM
  3. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 07:01 PM
  4. Hmm....help me take a look at this: File Encryptor
    By heljy in forum C Programming
    Replies: 3
    Last Post: 03-23-2002, 10:57 AM
  5. what does this mean to you?
    By pkananen in forum C++ Programming
    Replies: 8
    Last Post: 02-04-2002, 03:58 PM