I don't know if mine was a typical experience, but it took me less than
one-and-a-half hours to convert my C++ app from a single segment to
multi-segment, and that's from the minute I decided it needed to be done
to successfully compiling the application, including all research into
how to do it (I didn't have any idea). Since then, this app has grown
to about 150k, and the only issue I've had is having to rotate parts of
the program I want to debug in to and out of the main segment, although
I hear with a patch this has been fixed, but I haven't tried it yet. In
my experience it was a relatively trivial process. I haven't used
codewarrior since version 5 (I think), and never with a large enough app
to need multiple code segments.
Yes, you do need to label each function, I have some defines like:
...
#define SEC_NAME __attribute__(( section( "SEC_NAME" )))
...
And then the function prototypes would go from (unless it's to reside in
the main segment):
<type> <function name>( <parameter list> );
<type> <function name>( <parameter list> ) SEC_NAME;
That's all it took for me (and some IDE parameters being set), although
I *do* seem to remember having some problems with some functions that
were declared inline, but I don't recall what the issue was. I think I
only had a few declared as inline, and removing the inline solved the
problem. In my case, inlining the functions wasn't important enough to
bother fixing the issue. To debug I just comment out the segment name
definition (from __attribute__ on) that I want to debug. By the way,
I'm using Falch.net's IDE.
-----Original Message-----
From: Mark Smith [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 8:39 AM
To: Palm Developer Forum
Subject: gcc for large projects
Without wishing to start a religious debate, I'm curious to
know of anyone's experience with using gcc for larger-scale
(>100k, multi-segment) C++ Palm projects, especially if you've
used CodeWarrior before. For instance (based on my minimal
knowledge), it appears that you have to explicitly label the
segment for each function/method. Any other gotchas like that?
--
-M- [EMAIL PROTECTED]
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/