comp.lang.ada
 help / color / mirror / Atom feed
From: Marin David Condic <condicma@bogon.pwfl.com>
Subject: Re: Does this model work ?
Date: 1999/05/20
Date: 1999-05-20T00:00:00+00:00	[thread overview]
Message-ID: <37446337.5F60D8F1@pwfl.com> (raw)
In-Reply-To: 7i1cad$4md$1@nnrp1.deja.com

Robert Dewar wrote:
> 
> First, surely no one would use Standard.Integer if they
> have any concern for portability.
> 
The problem is often one of not knowing that you are supposed to have a
concern for portability. Sometimes you build things believing that it
just has to function in this single environment and that it will never
be called on to move. Or you believe it will be thrown out long before
it ever becomes an issue (Witness, Y2k! :-)

> Second, I agree that specifying sizes for any data to be used
> externally is quite reasonable, and in this sense I agree
> with the above quote.
> 
> The point is that well written code should be as easy to
> port from 32- to 64-bits as from any one Ada 95 compiler
> to another.
> 
And then you have to ask the question: "What constitutes 'well written'
when portability is a concern?" Certainly, predefined types are O.K. for
internal computations within known limits. User defined types with rep
clauses where I/O or interaction with other devices are issues.
Information hiding is important for device dependencies, etc. so that
the parts which can't be portable are at least isolated and easy to
replace. There are quite a few ways to shoot yourself in the foot.

I don't know that anybody has come up with a list of steps or guidelines
that someone can use as a kind of cookbook for insuring portability. It
would be handy to have. Without one, I think the best defense is being
sensitive to what compilers do and how things might vary from one
implementation to the next. Ada95 certainly makes this significantly
easier than other languages and we've had some porting experiences
around here that tend to bear this out empirically.

MDC
-- 
Marin David Condic
Real Time & Embedded Systems, Propulsion Systems Analysis
United Technologies, Pratt & Whitney, Large Military Engines
M/S 731-95, P.O.B. 109600, West Palm Beach, FL, 33410-9600
***To reply, remove "bogon" from the domain name.***

Visit my web page at: http://www.flipag.net/mcondic




  reply	other threads:[~1999-05-20  0:00 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-14  0:00 Does this model work ? Jean-Marten Marchi
1999-05-14  0:00 ` dennison
     [not found]   ` <01be9ee1$eca9be10$022a6282@dieppe>
1999-05-15  0:00     ` Al Christians
1999-05-16  0:00       ` Robert Dewar
1999-05-16  0:00       ` Larry Kilgallen
1999-05-17  0:00       ` Pascal Obry
1999-05-17  0:00         ` Marin David Condic
1999-05-20  0:00           ` Robert Dewar
1999-05-20  0:00             ` Marin David Condic [this message]
1999-05-16  0:00     ` Jean-Marten Marchi
1999-05-16  0:00   ` Robert Dewar
1999-05-16  0:00     ` Andi Kleen
1999-05-17  0:00       ` Robert Dewar
1999-05-17  0:00     ` jrcarter001
1999-05-17  0:00       ` Robert Dewar
1999-05-18  0:00     ` dennison
1999-05-19  0:00       ` Robert Dewar
1999-05-19  0:00         ` dennison
1999-05-14  0:00 ` Al Christians
1999-05-14  0:00   ` Jean-Marten Marchi
1999-05-16  0:00     ` Robert Dewar
1999-05-16  0:00       ` Jean-Marten Marchi
1999-05-17  0:00       ` Roger Racine
1999-05-14  0:00   ` Jean-Marten Marchi
1999-05-15  0:00     ` Florian Weimer
1999-05-15  0:00       ` bglbv
1999-05-16  0:00         ` Tom Moran
1999-05-16  0:00       ` Robert Dewar
1999-05-16  0:00       ` David Botton
1999-05-16  0:00         ` Robert Dewar
1999-05-16  0:00 ` Robert Dewar
1999-05-16  0:00   ` Jean-Marten Marchi
1999-05-17  0:00     ` Robert Dewar
1999-05-17  0:00       ` Jean-Marten Marchi
1999-05-17  0:00       ` Jean-Marten Marchi
1999-05-18  0:00         ` Samuel T. Harris
1999-05-20  0:00           ` Jean-Marten Marchi
1999-05-20  0:00             ` Samuel Mize
1999-05-20  0:00               ` David Botton
1999-05-20  0:00                 ` Samuel Mize
1999-05-20  0:00             ` Samuel T. Harris
1999-05-18  0:00     ` dennison
replies disabled

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