same sourcecode makes different exe

Started by Franzki, December 09, 2009, 11:08:25 AM

Previous topic - Next topic

Franzki

Just a strange question...

I have 2 executables created from the same sourcecode with identical project settings. But a binairy compare shows the executables differ one byte at two positions. Is there some time-stamping around in the compiler or linker that causes a different executable is generated everytime I compile and link the project?

AlexN

Quote from: Franzki on December 09, 2009, 11:08:25 AM
Just a strange question...

I have 2 executables created from the same sourcecode with identical project settings. But a binairy compare shows the executables differ one byte at two positions. Is there some time-stamping around in the compiler or linker that causes a different executable is generated everytime I compile and link the project?

Yes, the header of an executable (PE-File) includes the timestamp of building. PODUMP /HEADERS can show you the timestamp.

At http://msdn.microsoft.com/en-us/library/ms809762.aspx you can read something about the PE-format.
best regards
Alex ;)