Windows의 소스 코드 바이너리에 대한 질문이 있습니다.동일한 간단한 소스 코드, Windows의 다른 바이너리
#include <stdio.h>
int main()
{
printf("Hello, world!\n");
return 0;
}
동일한 소스 코드를 Windows (VS 2008 Cmmand Prompt : "CL")에서 두 번 컴파일했지만 다른 바이너리가 있습니다.
cl new.cpp
왜 그런지, 어떻게 피할 수 있습니까?
참조 빌드를 http://stackoverflow.com/questions/1221185/ same-build-on-different-systems 및 http://stackoverflow.com/questions/1277877/gcc-compiled-binaries-w-different-sizes - 기본적으로 컴파일러는 바이너리가 동일하다는 것을 보장하지 않습니다. –
왜 바이너리가 동일해야합니까? – jalf