0

So I am trying to compare a binary file I make when I compile with gcc to an sample executable that is provided. So I used the command diff and went like this

diff asgn2 sample-asgn2 Binary files asgn2 and sample-asgn2 differ

Is there any way to see how they differ? Instead of it just displaying that differ.

4

4 に答える 4

1

hexdump を使用して、2 つのバイナリの 16 進ダンプを実行します。次に、kdiff3、tkdiff、xxdiff などのお気に入りの差分ツールを使用して、16 進ダンプを比較できます。

于 2012-09-03T02:52:06.947 に答える