View Single Post
  #3 (permalink)  
Old March 24th, 2005, 01:15 AM
Alan-LB Alan-LB is offline
Authorized User
 
Join Date: Mar 2005
Posts: 58
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to Alan-LB Send a message via Yahoo to Alan-LB
Default

The memory used by the program will vary as the program executes.

First the .EXE file (that is the executable program file) will occupy a certain amount of memory. You can find this out by doing a DIR listing and seeing now big the file is. This will contain space for your program code and the global variables and constants that you declare.

Second, memory on the stack will be allocated and deallocated as the various functions in your program execute and use local variables.

Third, if you use the heap memory, this will be allocated and deallocated as you use the NEW and DELETE keywords.

The IDE that you are using may also give you statistics on your program that may help.

Alan


Reply With Quote