> Created a new multi segment project and brought in all my files. Made
some
> changes to the setting and compiled. No problems.
>
> Now... NONE of these lists are working.....
>
> Given the size of my code, Do you think this problem may be solved if
I
> break up the code further to have each segment no larger than 32K?
>
> Also, I am using the "Large" code model in the settings.. Can this
affect
> anything?
>
> Also, is there some sort of memory that variables can see eachother or
a
> range for globals?
>
> Unfortunately, my app is using globals all over the place and I have a
very
> large app preference struct which is constantly being referenced as a
> global.
Global variables shouldn't be affected by segmentation. Segments only
affect code sections, although some global constants get allocated to
code sections (more if you use the pcrelconstdata pragma).
Using the large model shouldn't affect this, but if you're going
multi-segment, you should switch back to the small model to avoid making
all your jumps extra large. Using the small model doesn't limit your
segments to 32K, you just need to rearrange source files within each
segment to make sure there are no jumps that go too far.
Turn on the linker map output, and check it, looking at the addresses
where your globals got allocated. This may provide a clue.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/