comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin D. Condic" <mcondic-nospam@quadruscorp.com>
Subject: Re: Ada vs. C++
Date: 2000/02/15
Date: 2000-02-15T18:17:56+00:00	[thread overview]
Message-ID: <38A9980E.A50A0D91@quadruscorp.com> (raw)
In-Reply-To: 38A37C97.9E181025@interact.net.au

G wrote:
> 
>   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.
> 
If your purpose is to select a compiler for a project with some sort of
time critical requirement then I would suggest that you find some
code/algorithms that are similar to the intended application (I/O
intensive, Math intensive, Memory intensive, etc.) and feed them through
a few compilers to see what you get. This sort of benchmarking can prove
useful and there may be some of that work done by various realtime
projects which folks might be willing to share.

If your question is more along the lines of "Which language is faster
and more memory efficient?" then I'm afraid you will get no useful
information on that subject. For benchmarking purposes, you cannot
separate the language from the implementation. One man's Ada compiler
may produce dramatically better code than another man's C++ compiler.
Likewise, the opposite. This really tells you nothing about either
language - just how well/poorly someone implemented the language.

This much can be said: There is nothing inherent in Ada that would make
it less efficient than C++. In some ways, Ada syntax is superior for
optimization purposes because more information is available to the
compiler. In other ways, Ada could be slower because of the requirements
for runtime checks. However, the language allows you to turn off runtime
checks if efficiency is a major concern. (When doing realtime control
systems, we routinely turned off checks and had code that was every bit
as efficient as that which could be produced by any other language.)

MDC
-- 
=============================================================
Marin David Condic   - Quadrus Corporation -   1.800.555.3393
1015-116 Atlantic Boulevard, Atlantic Beach, FL 32233
http://www.quadruscorp.com/
m c o n d i c @ q u a d r u s c o r p . c o m

Visit my web site at:  http://www.mcondic.com/

"Capitalism without failure is like religion without sin." 
        --  Allan Meltzer, Economist 
=============================================================




  parent reply	other threads:[~2000-02-15  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
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   ` Preben Randhol
2000-02-11  0:00   ` Florian Weimer
2000-02-14  0:00     ` Gisle S�lensminde
2000-02-11  0:00   ` Gary
2000-02-14  0:00     ` Tarjei T. Jensen
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       ` Robert A Duff
2000-03-07  0:00         ` Mike Dimmick
2000-03-07  0:00           ` Jeff Creem
2000-02-16  0:00       ` Stephen Leake
2000-02-15  0:00 ` Marin D. Condic [this message]
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