Great, that's a good example.
I still have a question. Can I pass pointers between the different
segments? I ask it because if the problem is pointers farther than 64k...
For example, if I have in segment 1:
(Note: tipically, I would have #includes to do this code, but for
readability...)
----------
#define EXTRA_SECTION_ONE __attribute__ ((section ("code1")))
void f1(UInt8 *i) EXTRA_SECTION_ONE;
void f1(UInt8 *i){
(*i) = 1;
}
----------
And I have in segment 0 (main segment):
--------------
#define EXTRA_SECTION_ONE __attribute__ ((section ("code1")))
void f1(UInt8 *i) EXTRA_SECTION_ONE;
...
UInt8 var;
f1(&var);
...
-------------
Would it be correct?
Remi wrote:
Remi wrote:
2) No tools for segment management that I've been able to find.
The second one is a bit of a pain, though - Code Warrior is great
in that you can see how large your segments are, and move files
around without any hassle.
I've never wrote a Palm program that needs multisegment, but I
guess it is related to the size of the program. Do you know of any
doc that I can read to understand segments, when do I need them,
how to create them,...?
I got my background info in Code Warrior docs, "Targeting Palm OS".
Don't know how available the doc is if you don't have Code Warrior,
though.
There's also an example of how to create an app with multiple
segments available in the knowledge base:
http://kb.palmsource.com/cgi-bin/palmsource.cfg/php/enduser/std_adp.php?p_sid=NwiReWci&p_lva=&p_faqid=995
Regards, Remi.
--
Javier Sedano Jarillo: [EMAIL PROTECTED]
Agora Systems S.A.
C/Velazquez, 46, 6º derecha; E-28001 Madrid (Spain)
Tel.: +34 676 48 29 55; Fax.: +34 91 577 76 72
--------
Antes era indeciso, ahora... no sé. -- Anónimo.
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/