comp.lang.ada
 help / color / mirror / Atom feed
From: ryer@inmet.inmet.com
Subject: Re: ada portability
Date: 15 Nov 90 14:10:00 GMT	[thread overview]
Message-ID: <20600072@inmet> (raw)
In-Reply-To: 521@wrdis03.af.mil


You can expect to get out as much as you put in.  For example, if you
just declare variables to be of built-in types, then behavior may vary
on machines/compilers with different hardware.  If you declare variables
with range and precision constraints to specify exactly what you need,
then all compilers must give you the same behavior.  If you use compiler
or operating-system unique packages (e.g. DEC's package STARLET), compiler-
unique pragmas, etc., then you will loose portability.  If you use
representation specifications to do bit twiddling, don't count on much
portability.  If you write your program carefully, avoiding machine
dependencies, OS dependencies, and unique compiler features, you should
get excellent portability.  The only problem will be different bugs
in different compilers, and this should not be significant.

Ada *enables* you to build very portable software.  Ada also enables you
to write very low-level, machine dependent software.  Both capabilities
can be neccessary.  If you have to pack some bits into a hardware defined-
message packet, and use the operating system to transmit it over a 1553 bus,
then you need to be able to write non-portable code, and Ada will let you.
There are several guidline documents that will help you write code that
is 100% portable.

Hope that helps

Mike Ryer
Intermetrics

  reply	other threads:[~1990-11-15 14:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1990-11-14 14:09 ada portability Claus Franzkowiak
1990-11-15 14:10 ` ryer [this message]
  -- strict thread matches above, loose matches on Subject: below --
1990-11-16 17:09 Ada portability "", Mats Weber
1990-11-19 23:19 ` Robert I. Eachus
1990-11-15 17:26 Ada Portability Ed Knoll @(719)593-3762
1990-11-14 17:04 Ada portability David Emery
1990-11-14 14:47 ada portability Claus Franzkowiak
1990-11-14 14:27 Claus Franzkowiak
1990-11-14 14:19 Claus Franzkowiak
1990-11-14 14:16 Claus Franzkowiak
1990-11-17  4:09 ` Ted Holden
1989-12-16 20:03 portability problems William Thomas Wolfe, 2847 
1989-12-20  4:17 ` ARTEWG Bruce Jones
1989-12-22 12:29   ` Ada Portability Ed Matthews
replies disabled

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