3 ms·
Honest question: if the source code is compiled with the same compiler (although different computer), will it give a different binary with a different hash?
by omegant 13y ago
Honest question: if the source code is compiled with the same compiler (although different computer), will it give a different binary with a different hash?
- FedRegister 13y agoPotentially yes if the compiler is not configured (at build time) with the same options and the same optimization levels are not used when building the source.
- MaulingMonkey 13y agoEven compiling the source code with the same compiler, same build options, and same computer will generally generate a different binary with a different hash! Special effort is required to generate "deterministic builds", sometimes seen for e.g. verifying the integrity of gambling software. Here's what one fellow has been going through in an effort to accomplish that: http://stackoverflow.com/questions/1180852/deterministic-builds-under-windows http://stackoverflow.com/questions/1180852/deterministic-bui...