I create many simple programs that do not need memory, but they always show about 1 MB-1.6 MB of memory in the private column of the task manager.
I read that the default stack size is 1 MB for communication with link.exe, I tried to play with / STACK as follows:
/STACK:65536 (64kb)
/STACK:16777216 (16mb)
when I run the program, the memory has not changed at all.
Even a simple program like this, using 1.6MB compiled as 64bit with link.exe and without libs (simple.c):
#include <stdio.h>
int main() {
puts("hello world\n");
getchar();
return 0;
}
- , ? , 1mb , , Windows, taskman, . smss.exe 0.4MB .
!