Compile the program and look at the values!
I have never had to know this. If you estimate that the program would take up "too much memory", then would it not get written? I don't think so. And what is "too much memory" anyway?
If this is a management requirement, suggest that the time taken up in providing such figures before writing the program would be better spent in writing the program and giving more accurate figures afterwards.
Seriously, if it is really necessary, look at compiled programs which use a similar number of files and a similar amount of code. That will give you a better estimate than cold calculation.
================================== MORE INFORMATION ON THIS TOPIC ==================================
The Best Web Links: tips, tutorials and more.
Ask your programming questions--or help out your peers by answering them--in our live discussion forums.
Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.
This was first published in September 2004