Re: Getting source file from the object file



On Mar 5, 9:40 pm, pavunkumar <pavun....@xxxxxxxxx> wrote:
Dear Friend

                  Can we get the source file from the object ?
example :

file a.c
cc a.c
Now I have a.out
But I not have the a.c
how could I get the source file using a.out

In general, what you are trying to do is to turn the hamberger back
into the cow.

Now, it is probably impossible to decompile 100%, because it has been
shown to be equivalent to the "does the turing machine halt?" problem.

However, pragmatically speaking, it can sometimes be made to work (up
to a point -- e.g. the comments are lost for sure, and probably the
variable names but you might be able to collect the algorithm).

Do a web search for "decompiler".

A better approach is to use IdaPro disassembler. It will do a flow
chart for you and you can collect the algorithm from that.
.



Relevant Pages

  • How to compile this?
    ... I would like to execute 'Algorithm 647' from the ACM Collected ... compile using the command: ... Suppose it is necessary to add the QSS ... one PROGRAM statement in the source file? ...
    (comp.lang.fortran)
  • Re: [was Luxasm news]
    ... |> should first save the file when they press the assemble option (and the ... the user loses any unsaved changes in their source file. ... but I never lost a single character in the source. ...
    (alt.lang.asm)
  • Re: problem step-in debug through instance_eval
    ... load "dyn.dsl" ... The 'self' object context would be lost. ... A debugger is probably not going to be able to find the source file if ...
    (comp.lang.ruby)
  • Re: Getting source file from the object file
    ... Richard Bos wrote: ... Much information is lost in ... compilation. ... Here, For example only I told, my source file is deleted, ...
    (comp.lang.c)
  • Re: How can I print the file name on a .jpg picture?
    ... There are Importers that allow the filename text as part of the insert ... However, once in place, the name of the source file is lost. ...
    (microsoft.public.powerpoint)