Hi! > Is there an easy way to segment an application to allow for a code size > > 32K? My program is written in C++ and I've tried creating syslibs and glibs. > The syslibs won't work, because C++ seems to be using global data and > the glibs compile OK. However, as soon as I call a library function a > bus error is raised (even when using a C - only program). > I've been playing with a program called 'multilink', but have some > trouble getting it to work. Can you guys tell me in which direction I > should be looking? > Why don't you just set up a multisegmented project and manually add segment attributes to your classes' methods? There is extensive documentation on this on the PRC-Tools homepage on SourceForge. An IDE like MobileStudio might help. See http://www.mobilesoft-labs.com/images/MultiSegment.gif. It's $30, but if your time is worth money it might be a good deal. If your time is worth even more money, you might want to switch to CodeWarrior. Multisegmenting there is only a few mouseclicks and requires no changes to the source code. If you want the same thing for PRC-Tools you could also try out the HandSpring version of GCC, where you can specify a text file to the compiler that essentially contains lines saying "Everything from file myfile.cpp shall go to segment 'mysegment'". I haven't tried it, but it sounds like a god-sent in comparison to what PRC-Tools is currently offering.
Hope this helps, Tilo -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
