> Hi,
> 
> I'm wondering if there is any data available on the popularity
> of C versus C++ for PalmOS application development. I'm trying
> to find out whether PalmOS libraries and applications
> are written more often in plain C than in C++.
> 
> Any input is appreciated. Thanks.
> 
> silvano

Whether to use C or C++ in Palm OS programming has been a popular 
topic of discussion on this and other developer forums. The majority 
of existing Palm OS applications are written in C; however, this 
appears to be changing going forward.

The quality of C++ class frameworks, such as the Object Library for 
Palm OS, has improved over the years and the expanded mode solution 
in CodeWarrior for Palm V8 helps fix many of the problems that were 
once associated with using C++. 

However, problems still exist with using C++, which you should be
aware of. They include first-segment size, virtual table size, and 
exception table size, all of which can grow extremely large. 

In addition to problems associated with standard applications, there
are significant restrictions associated with creating shared libraries.
For instance, you cannot expose class methods as library routines. Most
importantly, you cannot use virtual functions or exceptions since 
shared libraries do not have access to global data space.

I hope that helps.

--
Vinu Raj
Metrowerks Developer Support

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

Reply via email to