Re: question on a "logical" cmp utility

Bruce Dawson <>
22 Sep 1998 01:19:17 -0400

          From comp.compilers

Related articles
question on a "logical" cmp utility (taek) (1998-09-18)
Re: question on a "logical" cmp utility (Bruce Dawson) (1998-09-22)
Re: question on a "logical" cmp utility (Clifford Click) (1998-09-22)
| List of all articles for this month |

From: Bruce Dawson <>
Newsgroups: comp.compilers
Date: 22 Sep 1998 01:19:17 -0400
Organization: Cygnus Software
References: 98-09-068
Keywords: linker

I needed to do this recently when I needed to prove to our QA team
that a bug fix had affected just the specified region. I came up with
a charmingly simple technique. I disassembled the before and after
executables, and compared those. This had several useful effects:

1) All the objects were concatenated by the linker, meaning I only
had to compare one (big) file.
2) Where there were differences I could easily tell whether they
were the correct ones.

I'm sure that a disassembler could be hooked up in series with text
processing programs that would remove any extraneous headers, if
needed. I suspect that such header removal would be easier in the text
domain than in the binary domain.

taek wrote:
> I'd like to know whether there is a tool out there which will do a
> "logical" diff between two binary files.
Bruce Dawson, Cygnus Software Author of Fractal eXtreme for Win32
Get your 15 day trial copy of FX at:
Write me at:

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.