Re: [NTLK] Drawbacks of C / C++ vs. Newtonscript?

From: Laurent Daudelin (laurent.daudelin_at_verizon.net)
Date: Fri Sep 27 2002 - 21:52:57 PDT


on 28/09/02 03:23, J. Eagan Rackley at jrackley_at_electronicbingo.com wrote:

> Hello All,
>
> In coding for the newton I thought of a question that I was hoping one
> of you gurus might answer for me.
>
> Aside for the ease of using C++ / C with newton programs, is there a
> benefit in doing so in regards to speed? Say, I have to continually call
> a C loop over and over again to run a routine I need in my program. Will
> this create more of a performance hit than just calling a newtonscript
> routine over and over again (saying the routines performed similarly,
> and assuming I'm just passing pointers to structs that would not need
> any conversion/casting to a useable C type))?
>
> I'm guessing that it is, but I was curious what you guys thought? Maybe not?
>
> I guess what it boils down to is, if I am indeed concerned with speed,
> would I be better off coding in newtonscript entirely / maybe some arm
> ASM where needed) instead of using C / C++?
>
> I don't want to traipse too far down one road only to find later that I
> really should have taken the other.

It might be faster, but you have other limitations to watch for. For
instance, all C++ code shares a special area in the Newton memory, not the
usual heap that NewtonScript uses.

Are you serious when you mention "the ease of using C++"? Did you look at
NewtonScript? IMNSHO, it is a lot less convulated than the mangled C++
syntax...

-Laurent.

-- 
============================================================================
Laurent Daudelin      AIM/RV: LaurentDaudelin    <http://nemesys.dyndns.org>
Logiciels Nemesys Software               mailto:laurent.daudelin_at_verizon.net
coaster n.: 1. Unuseable CD produced during failed attempt at writing to
writeable or re-writeable CD media. Certainly related to the coaster-like
shape of a CD, and the relative value of these failures. "I made a lot of
coasters before I got a good CD." 2. Useless CDs received in the mail from
the likes of AOL, MSN, CI$, Prodigy, ad nauseam. 
-- 
Read the List FAQ/Etiquette: http://www.newtontalk.net/faq.html
Read the Newton FAQ: http://www.chuma.org/newton/faq/
This is the NewtonTalk mailing list - http://www.newtontalk.net/


This archive was generated by hypermail 2.1.5 : Mon May 26 2003 - 12:59:23 PDT