问题
I need a tool to compare 2 binaries. The files are quite large. Some freeware or trial tools I found on the Internet are not convenient to use for large files. Can you recommend me some tools?
回答1:
A few possibilities:
- VBinDiff (binary diff, designed for large files)
- WinDiff
- bsdiff
- HexCmp
See also: https://web.archive.org/web/20151122151611/https://stackoverflow.com/questions/688504/binary-diff-tool-for-very-large-files
回答2:
If you want to find out only whether or not the files are identical, you can use the Windows fc
command in binary mode:
fc.exe /b file1 file2
For details, see the reference for fc
回答3:
Total Commander also has a binary compare option:
go to: File \\Compare by content
ps. I guess some people may alredy be using this tool and may not be aware of the built-in feature.
回答4:
My favorite "swiss knife" Beyond Compare from http://www.scootersoftware.com/
回答5:
I prefer to use objcopy to convert to hex, then use diff.
回答6:
In Cygwin:
$cmp -bl <file1> <file2>
diffs binary offsets and values are in decimal and octal respectively.. Vladi.
回答7:
I think hexcmp is instant & easy to use
It is a gui app compared to those command-line, very easy to use yet quite powerful feature-wise. It should be useful for beginners & passing users.
HexCmp HexCmp is a visual binary file compare application and easy-to-use hex editor. It can help you to compare two files as a binary raw quickly and easily. ($29.95)
回答8:
When beeing outside, the "DiffTool" from Googles Play Store can be used too. DiffTool compares text files, binary files and folders if the files are not to extremely large.
来源:https://stackoverflow.com/questions/8166697/tool-for-comparing-2-binary-files-in-windows