[comp.sys.sgi] How does one diff binary files?

Scott Le Grand <SML108@psuvm.psu.edu> (04/01/91)

Hi, in the continuing saga to figure out what my program looks like, I have
been re-compiling my program to try and make it match the compiled version
I have saved.  However, I have found that two linkings of the same set of
object files results in them being different when diff is applied to
them.  What is going on here?  The program is in C at level 2 optimization.

Scott Le Grand

vjs@rhyolite.wpd.sgi.com (Vernon Schryver) (04/02/91)

The dis command can be useful for figuring out .o changes.  For example: 

	dis foo.o > f1
	dis bar.o > f2
	diff f1 f2

Vernon Schryver,   vjs@sgi.com

smd@rehder.larc.nasa.gov (Steve Dahmen) (04/03/91)

You may want to get GNU Software's version of diff
from prep.ai.mit.edu.  It compiles nicely on the IRIS and handles
binary files.


-- 
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Steve Dahmen, Systems Analyst                         (804) 864-4519 (W)
M/S 365,  NASA Langley Research Center                    
Hampton, Virginia  23665                        smd@rehder.larc.nasa.gov