Visual C ++ express 2008: Why does it put megs from zero bytes at the end of the release executable?

I recently discovered that my release executable (made with msvC ++ express 2008) is getting very large. When I look at the executable file using hexadecimal scan, I saw that only the first 300 thousand bytes contain useful data, the rest bytes - only zeros - 6 megabytes of zero bytes.

The debugged embedded exe is 1 MB in size, but the release is 6.5 MB.

Why does MSVC ++ Express do this useless thing? How can i fix this?

+3
source share
3 answers

? . dumpbin, , exe , "".

+10

, .exe , ? , " ".

, .

" ".

+2

6 , Debug - , - . . , Debug Release.

0

Source: https://habr.com/ru/post/1702210/


All Articles