On Wed, Feb 20, 2002 at 01:00:00PM +1100, Igor Siemienowicz wrote:
> Anyway, standard C++ try/throw/catch code
> DID compile OK (no errors or warnings), but when I tried to run it on POSE,
> I got a stack overflow when executing the 'throw' statement.

IIRC this is due to prc-tools's startup code not initialising GCC's C++
exception handling code correctly.

On Thu, Feb 21, 2002 at 11:53:44PM +1100, Igor Siemienowicz wrote:
> 1. I could be wrong about this, but I heard that the exception-handling
> stuff adds about 7-10K - now, this doesn't seem like such a big deal to me,
> unless you're writing for the Pilot1000 (I actually did own one, once... way
> back when the world was young :-D)... of course, I could be wrong about the
> amount of bloat - maybe it is significant...

IIRC the exception tables are currently placed in the global data.  In
addition to the usual do-I-have-globals question, this means that even
on Palm OS devices with lots of memory any bloat is significant, because
global data is limited to 32K by a restrictive m68k addressing mode.

> So if anyone DOES know how to get 'em going in PRC-tools, I'd still love to
> hear from you.

What is required is for someone who cares about C++ exceptions to look
at the prc-tools startup code.  Sadly, whether I care about exceptions
or not, this is unlikely to reach the top of *my* list anytime soon, so
it requires someone else who cares.

    John

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to