le 5/07/00 11:04, Tom Zerucha � [EMAIL PROTECTED] a �crit�:

> On Wed, Jul 05, 2000 at 02:16:07PM +0530, Anne Srinivas wrote:
>> I have to port a big app from VC++ to Palm OS.
>> The application is a mapping app with lots of map data,routing and so
>> on....
>> 
>> I am at a juncture where i have to decide between c and c++.
>> If u can give me any link/document/description comparing c and c++ i
>> shall be
>> very gratefull to u.
>> 
>> I know that

>> 1. C++ app takes more memory
Only if you use inheritance. Inheritance requires vtables which can take up
some memory. All depends on how many classes and virtual methods you have.

>> 2 .C++ app is slow on palm
C++ is merely a layer above C, which is solved at compile and link time. So
it's not slower than C unless you write classes and methods that slow
everything down. You can use inlines to make your text code look clever and
your machine code be very fast.

I think that the most important thing to consider is: do you need C++ ? That
is, do you need inheritance ? If so then you should use C++ whatever the
cost, at least for the objects in your app that require it. Now do you need
speed ? Use 68K assembly. Do you need both ? Mix them.

Eric VERGNAUD


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