When dealing with memory-intensive applications, how do you determine the appropriate amount of RAM and Flash on a chip?