Menu
Search




Articles & Documents

Close Tutorials

Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
22 Subscribers
CPDB.Net

Friends News
Visits

   visitors

   visitors online

Webmaster - Infos
forum.gifForum - ppCompiler - Topic #12

Forum - Forum
ppCompiler - ppCompiler


active  Topic # 12  Multi-segmenting

29/04/2009 @ 20:27
by jms

jms



I am writing a large application for my Palm running OS 5.2.8 and I am worried that I will run out of available memory. So far, the GUI uses about 20k (using Lychee routines). What is the largest program that memory can hold? Is multi-segmenting possible? If so, how do you link the programs and does mult-segmenting have a maximum amount of total memory for the total of all the programs that you link?


jms

Write to jms   Post an answer  Top
Answer n° 1
--------
01/05/2009 @ 13:45
by Philippe

Anonymous

visitor
The maximum size of the data segment is 32k, and this data segment is shared by all the code segment of the application. This is mandatory due to the dynamic link mechanism of multi segment.
Il you need more memory, you may just declare pointer in the data segment and initialize them with dynamic memory allocation.
Bird is an example of a huge multisegment application proprammed with PP. You may have a look to the source code, it is available.
Write to Philippe   Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 




^ Top ^