Re: Getting source file from the object file
- From: user923005 <dcorbit@xxxxxxxxx>
- Date: Fri, 6 Mar 2009 01:33:25 -0800 (PST)
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.
.
- Follow-Ups:
- Re: Getting source file from the object file
- From: Richard Tobin
- Re: Getting source file from the object file
- References:
- Getting source file from the object file
- From: pavunkumar
- Getting source file from the object file
- Prev by Date: Re: Some language not implemented in C?
- Next by Date: Re: Some language not implemented in C?
- Previous by thread: Re: Getting source file from the object file
- Next by thread: Re: Getting source file from the object file
- Index(es):
Relevant Pages
|