Related articles |
---|
Help on disassembler/decompilers wwho@ucdavis.edu (1990-09-06) |
Re: Help on disassembler/decompilers hrubin@l.cc.purdue.edu (1990-09-07) |
Re: Help on disassembler/decompilers pardo@cs.washington.edu (1990-09-07) |
Re: Help on disassembler/decompilers raul@sdnp1.ucsd.edu (1990-09-07) |
Re: Help on disassembler/decompilers seanf@sco.COM (1990-09-09) |
Re: Help on disassembler/decompilers rwallace@vax1.tcd.ie (1990-09-09) |
Re: Help on disassembler/decompilers vu0310@bingvaxu.cc.binghamton.edu.cc.binghamton.ed (1990-09-10) |
Re: Help on disassembler/decompilers hankd@dynamo.ecn.purdue.edu (1990-09-09) |
Re: Help on disassembler/decompilers Chuck.Phillips@FtCollins.NCR.COM (1990-09-10) |
Re: Help on disassembler/decompilers adamsf@turing.cs.rpi.edu (1990-09-10) |
Re: Help on disassembler/decompilers harrison@necssd.NEC.COM (1990-09-11) |
Re: Help on disassembler/decompilers freek@fwi.uva.nl (1990-09-12) |
[17 later articles] |
Newsgroups: | comp.compilers |
From: | rwallace@vax1.tcd.ie |
Keywords: | assembler, debug |
Organization: | Computer Laboratory, Trinity College Dublin |
References: | <HOW.90Sep5173755@sundrops.ucdavis.edu> |
Date: | 9 Sep 90 12:52:29 GMT |
In article <HOW.90Sep5173755@sundrops.ucdavis.edu>, wwho@ucdavis.edu (W. Wilson Ho) writes:
> I am looking for any information related to disassembling
> object code into assembly langauge or even higher-level language such
> as C. Would someone please give me pointers to program sources,
> documentation or papers related to this?
> [Turning object code back into assembler is pretty straightforward, and
> every debugger does it. Someone else asked about disassembling into higher
> level languages a little while ago, but I didn't see any responses. -John]
There's no unique mapping from machine code to HLL and hence (unlike machine
code to assembler) no simple algorithm (your algorithm might recognize
something it thinks is a loop but is it a for loop, a while loop or just
something hacked together with gotos? that's before you even think about what
optimized machine code will look like). You could probably figure out a
complicated algorithm but to what purpose, since with no symbol table the HLL
code will not be significantly more readible than the assembler code anyway.
--
Russell Wallace, Trinity College, Dublin
rwallace@vax1.tcd.ie
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.