Task Manager indicates my program uses 1.834 kB of memory. I'm sure I haven't allocated even half that much. Why does my program use over 1 MB? I find that pretty much.
Printable View
Task Manager indicates my program uses 1.834 kB of memory. I'm sure I haven't allocated even half that much. Why does my program use over 1 MB? I find that pretty much.
1.834 or 1,834. Also, are you running debug or Release?
As the dot takes two pixels, I believe it's a comma.
This time it's 1,376 kB.
This build does not have debug information. (i am using Dev, not VC)
Most likely overhead from Windows and/or any libraries you are using.
Console projects use around 900 kB.
I guess I shouldn't worry about it.
it's the same for me, if I run a C++ app, without any memory allocation, the app uses :
1,484
I dont know why :s
Well what libraries are you using? Just because you aren't allocating memory doesn't mean they aren't. Also without really knowing what Windows is doing behind the scenes it is almost impossible to know why it is using that amount.
And what is your Stack size?
I am using no libraries. Except windows ofc.
I don't know what the stack really is (I know how it works in asm, but I don't understand that you can simultaneously store variables on it:confused: ), but my compiler sets a default stack size, that could be that big, I only didn't know that that was also shown in task manager.
The stack size set by default in most compilers rather large, consider reducing it (somewhere in prefs or something).