What's the best way to compare OBJ files or EXE's?

Folks,

As many do, I often comment out lines of code and leave them lying around in my source code.

What I’d like to do is undertake a little house cleaning, and strip out all that clutter.

However, I’d like to verify that I get the same binaries when I’m done.

Ideally I’d like to clean each module one at a time and check each obj file against the cluttered version.

(Yes, I use a revision control system, but checking by hand is too error prone.)

The biggest problem I’ve had so far is the sprinkling of date/time stamps in the files screwing up the comparison process.

Any ideas?

Thanks,

John Miramonti

try to do:

dumpbin /disasm fileold.obj >lst1
dumpbin /disasm filenew.obj >lst2
diff lst1 lst2

at least there are no timestamps in the listing.

| Norbert Kawulski | mailto:xxxxx@stollmann.de |
| Stollmann E+V GmbH, Development | http://www.stollmann.de |
–If it’s ISDN or Bluetooth, make sure it’s driven by Stollmann–

“The shadows are behind you if you walk toward the light.”