"Dave Carrigan" <[EMAIL PROTECTED]> wrote in message
news:77307@palm-dev-forum...
>
> "Igor Siemienowicz" <[EMAIL PROTECTED]> writes:
> > [... unsuccessful C++ exception-handling using SDK 4.5 ... ]
> >
> > Has anyone got any experience with this? Would SDK 4.0 fix the
> > problem?
>
> That was my experience as well, under the 4.0 sdk with prc-tools.

Well, sounds like it's a no-go, then. Pity - I do like the extra
sophistication of C++ exceptions. I understand that they do work in CW, but
I'm a GCC-lover!

As I understand it, the two main objections to using C++ exceptions in
PalmOS are code-size and speed, BUT:

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...

2. On most of the C++ platforms I've used, the exception handling code
imposes almost zero speed overhead on NORMAL execution. The speed hit occurs
upon actually throwing an exception (and having to unwind the stack). Now,
given that this only happens in exceptional circumstances (by definition),
this should never be a problem - throwing an exception means 'stop what
you're doing and clean up - something's wrong'. Speed shouldn't be an issue
in exception handling.

Anyway, that's my two cents - I think some attention should be paid to
getting exceptions happening. I've used C++ exceptions successfully on
platforms significantly more limited than Palm OS.

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

Igor Siemienowicz



-- 
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