Q
Problem solve Get help with specific problems with your technologies, process and projects.

Estimate the amount of memory required for a program

How I can estimate the amount of memory required for a program?
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 last published in September 2004

Dig Deeper on RPG iSeries programming

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close