Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21602 Discussions

Binary Comparisons

Altera_Forum
Honored Contributor II
1,214 Views

I want to compare two version of compiled/linked software, where the only changes are the values of two constants. But when I perform a binary compare, the results show thousands of differences, rather just a couple of words that are different. 

 

Does anybody know why this is so?
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
467 Views

Do You mean you're comparing .sof files? Or processor binary .elf files?

0 Kudos
Altera_Forum
Honored Contributor II
467 Views

Actually, the files I am trying to compare are .srec files we get from the developer of the software. Regardless, they are hexidecimal text files and a binary compare does show there are differences. My problem is that only two 16-bit constants were changed, then all the files were recompiled and linked into the .srec file. My only guess is that the constant got replaced in lots of code during the compilation/linkage phases causing massive changes in the resulting .srec file. Does that sound right?

0 Kudos
Altera_Forum
Honored Contributor II
467 Views

It depends on how and where those constants were used, but they could also have triggered different optimisations from the compiler, resulting in very different code.

0 Kudos
Reply