Monday, 15 July 2013

compiler construction - Compiling Twice with Delphi 6 and getting the same checksum on the binary -


For binary / source code validation purposes, I want to be able to compile two on the same computer 2 weeks is different And Benjamin is similar and pass some checksum tests.

So far I have found that most timestamp compilers will be written in binary. I can work around this by comparing Dumpbin / Rodta results according to this MSDN article.

Although the result is still different in about a dozen places and the difference is still, for example, some type of timestamp (varies from A1 73 to C4 76) is.

I think this is the timestamp that the Delphi compiler is inserting the code / data sections but I can not find where this is happening or how to turn it off with the different compiler / linker options. This behavior has not changed.

Any help would be greatly appreciated.

We searched this question a few years ago, and as I remembered the answer, It was only those people that people in Borland / Codegear / Embarcadero do not subscribe to the notion that the compiler should actually produce the same output given the same input (assuming that considering the current date-time input Is not acceptable for).

It's disappointing, but considering that Delphi is an irreversible major version, it probably will not change.


No comments:

Post a Comment