comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic, 407.796.8997, M/S 731-93" <condicma@PWFL.COM>
Subject: Re: Ada versus PL/I (was: Re: Ariane 5 - not an exception?)
Date: 1996/09/05
Date: 1996-09-05T00:00:00+00:00	[thread overview]
Message-ID: <96090517174549@psavax.pwfl.com> (raw)


"J. Kanze" <kanze@GABI-SOFT.FR> writes:
>> ---In Fortran, BASIC, Pascal, Algol, PL/I, Turbo C, you just
>> use it [SQRT].  Nothing special needed.
>
>This isn't true for C (and thus Turbo C), of course.  You have to
>include math.h.  While it is a built in in older lanugages like Fortran
>or Basic, most modern languages will require a declaration for the
>function somewhere.  (I'm tempted to say that a language that doesn't
>require a declaration for a function is somewhat deficient, but SQRT is
>a special case.)
>
    Well here's a point that ought to be considered before deciding if
    SQRT should be intrinsic or declared somewhere:

    Ada was (and still is) intended to serve the needs of embedded
    programming. (Yes! yes! yes! You can *still* use it to print
    paychecks and it works just fine!) In embedded systems, you are
    frequently limited in the amount of memory you have available and
    so you don't like to drag along lots of extra functions &
    procedures which will never be called. I've built or seen *LOTS* of
    embedded software which *NEVER* does any arithmetic more
    complicated than +, -, * and /. Hence you'd like to exclude things
    like SQRT, LOG, SIN, etc. as well as any other code that might be
    "intrinsic" in some other language. Making those routines live in
    a "with'ed" package has got to make this job a lot easier.

    I'm not really up on the latest "Linker" theory, but I'd be
    willing to bet that it is a lot simpler to never include an unused
    math package than it is to get a linker to find unused "intrinsic"
    functions built into the RTK and remove them as "dead code".
    Perhaps someone out there a little bit smarter than me can shed
    some light on it? Is it theoretically possible for a linker to
    find *all* unused code and eliminate it? Are most language
    compiler/linker combinations in use today going through
    appropriate gyrations to do this? (A plausible argument for not
    building packages with a bazillion functions in them?)

    MDC

Marin David Condic, Senior Computer Engineer    ATT:        407.796.8997
M/S 731-96                                      Technet:    796.8997
Pratt & Whitney, GESP                           Fax:        407.796.4669
P.O. Box 109600                                 Internet:   CONDICMA@PWFL.COM
West Palm Beach, FL 33410-9600                  Internet:   CONDIC@FLINET.COM
===============================================================================
    "Thanks to the Interstate Highway System, it is now possible
    to travel across the country from coast to coast without
    seeing anything."

        --  Charles Kuralt
===============================================================================




             reply	other threads:[~1996-09-05  0:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-05  0:00 Marin David Condic, 407.796.8997, M/S 731-93 [this message]
  -- strict thread matches above, loose matches on Subject: below --
1996-09-04  0:00 Ada versus PL/I (was: Re: Ariane 5 - not an exception?) Marin David Condic, 407.796.8997, M/S 731-93
1996-09-06  0:00 ` Robert I. Eachus
1996-09-04  0:00 Marin David Condic, 407.796.8997, M/S 731-93
1996-07-25  0:00 Ariane 5 - not an exception? Simon Bluck
1996-07-25  0:00 ` Multiple reasons for failure of Ariane 5 (was: Re: Ariane 5 - not an exception?) Kirk Beitz
1996-07-26  0:00   ` ++           robin
1996-08-05  0:00     ` Darren C Davenport
1996-08-06  0:00       ` U32872
1996-08-07  0:00         ` Robert Dewar
1996-08-08  0:00           ` Pascal Martin @lone
1996-08-09  0:00             ` Robert Dewar
1996-08-10  0:00               ` dwnoon
1996-08-15  0:00                 ` Richard Riehle
1996-08-22  0:00                   ` ++           robin
1996-08-31  0:00                     ` Ada versus PL/I " Richard Riehle
1996-09-02  0:00                       ` ++           robin
1996-09-02  0:00                         ` Richard A. O'Keefe
1996-09-03  0:00                           ` ++           robin
1996-09-03  0:00                             ` Robb Nebbe
1996-09-17  0:00                             ` shmuel
1996-09-17  0:00                               ` Jay McFadyen
1996-09-18  0:00                                 ` John McCabe
1996-09-20  0:00                               ` shmuel
1996-09-03  0:00                       ` ++           robin
1996-09-04  0:00                         ` Robert Dewar
1996-09-07  0:00                           ` ++           robin
1996-09-03  0:00                       ` J. Kanze
1996-09-07  0:00                         ` Robert Dewar
1996-09-09  0:00                           ` ++           robin
1996-09-09  0:00                             ` Robert Dewar
1996-09-09  0:00                               ` Ken Garlington
replies disabled

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