comp.lang.ada
 help / color / mirror / Atom feed
From: Gautier <gautier.demontmollin@maths.unine.ch>
Subject: Re: Ada vs. C++
Date: 2000/02/11
Date: 2000-02-11T00:00:00+00:00	[thread overview]
Message-ID: <38A44487.B6F64F96@maths.unine.ch> (raw)
In-Reply-To: 38A37C97.9E181025@interact.net.au

>   Has anyone done any measurements on the different speeds and
> memory requirements of comparable applications written in C++
> and Ada95.  I am learning both languages.

For simple performance comparisons (fixed allocations) it would
be interesting - and rather comparing with Fortran compilers, THE
reference...

For programs using many temporary objects Ada offers possibilities
that C/C++/Fortran may not offer. I think to multi-precision
integer calculations that can be done without any dynamic allocation
(no 'new', 'free', nor memory fragmentation problems that arise quickly
in that context), because of ability of returning and manipulating
non-trivial objects (unconstrained arrays).

Beware of not comparing a bad C++ compiler with a good Ada one (or
reversely) and conclude something about the languages...
You have to precise how differently the programs can be coded in
both languages. If you program in Ada just like C you might
overuse allocations. Reversely, if you program the same algos
using Ada's nested procedures, local objects, subtyping etc.
it could bring good surpises...

-- 
Gautier

_____\\________________\_______\
http://members.xoom.com/gdemont/




  parent reply	other threads:[~2000-02-11  0:00 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-11  0:00 Ada vs. C++ G
2000-02-11  0:00 ` Ted Dennison
2000-02-11  0:00 ` Preben Randhol
2000-02-11  0:00 ` Gautier [this message]
2000-02-11  0:00   ` Bobby D. Bryant
2000-02-14  0:00     ` Larry Kilgallen
2000-02-11  0:00 ` Tarjei T. Jensen
2000-02-11  0:00   ` Gary
2000-02-14  0:00     ` Tarjei T. Jensen
2000-02-11  0:00   ` Florian Weimer
2000-02-14  0:00     ` Gisle S�lensminde
2000-02-11  0:00   ` Preben Randhol
2000-02-14  0:00 ` Vincent DIEMUNSCH
2000-02-14  0:00   ` Gautier
2000-02-15  0:00   ` Richard D Riehle
2000-02-15  0:00     ` gdb question, was " tmoran
2000-02-15  0:00       ` Ted Dennison
2000-02-15  0:00       ` Ehud Lamm
2000-02-16  0:00       ` Stephen Leake
2000-02-16  0:00       ` Robert A Duff
2000-03-07  0:00         ` Mike Dimmick
2000-03-07  0:00           ` Jeff Creem
2000-02-15  0:00 ` Marin D. Condic
2000-03-04  0:00   ` Robert I. Eachus
2000-03-04  0:00     ` Tarjei Tj�stheim Jensen
2000-03-04  0:00     ` Marin D. Condic
  -- strict thread matches above, loose matches on Subject: below --
2000-11-20  0:00 Ada Vs. C++ lilach_bien
2000-11-20 23:30 ` Ehud Lamm
2000-11-25  0:00 ` Pete
1991-04-09 21:35 Ada vs. C++ Mario Barbacci
1991-04-11 12:29 ` RICK CARLE
1989-11-17 18:53 Ada Pablo Fernicola
1989-11-18 18:55 ` Ada William Thomas Wolfe, 2847 
1989-11-26  6:09   ` Ada vs. C++ Paul S. R. Chisholm
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox