What to Remember

You learned how memory is structured in the Palm OS. Of the two kinds of memory (ROM and RAM), we spent most of the time discussing RAM. It is the memory primarily available to applications. RAM memory is used for both application data and the dynamic memory in which an application’s stack and globals must run. We looked at the Memory Manager APIs and showed you some sample code to help clarify their use.

Next, we turned to the important discussions of how to work around some of the size limitations imposed on your data and how to use memory effectively given its scarcity. Last of all, we offered you some advice and a helpful sample program to let you test what happens when your pointer and handle allocations get out of control.

Get Palm OS Programming, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.