4 ms·
Do not different compilers make different optimizations? Could not the output be then expected to be different?
by mhurron 13y ago
Do not different compilers make different optimizations? Could not the output be then expected to be different?
- WalterBright 13y agoWhen A compiles C, and B compiles C, then when we run C to recompile C, it will be doing the SAME optimizations, and should produce exactly the same binaries. I.e. take the iteration one more time. (I actually do this as part of the test suite for the Digital Mars C++ compiler - it takes two iterations until the binaries match exactly.)