comp.lang.ada
 help / color / mirror / Atom feed
From: mjmeie@ss3.magec.com (Michael J. Meier)
Subject: Re: Ada Portability... NOT!
Date: Wed, 23 Nov 1994 12:49:17 GMT
Date: 1994-11-23T12:49:17+00:00	[thread overview]
Message-ID: <Czq0y5.2sx@ss3.magec.com> (raw)
In-Reply-To: Czn6HI.16x@alsys.com

Keith Thompson (kst@alsys.com) wrote:

: I've just thought of a couple of ways an implementation could handle
: this that might have some chance of satisfying everybody.

: 1. By default, provide a "reasonable" level of support for representation
:    clauses.

: 2. Similar to the above, but the compiler issues a warning (or
:    informational message) for representations that require fancy
:    access code.  The addition of a pragma Pack might suppress the
:    warning message, reduce its severity from warning to informational,
:    or whatever.

: I don't know of any existing compiler that does this, including ones
: I've worked on.

: I've also often thought it would be nice if pragma Pack took an optional
: second argument to specify how enthusiastically the compiler should
: perform packing.  For example, pragma Pack(Some_Type) might ask the
: compiler to pack to byte alignment, while pragma Pack(Some_Type, Dammit),
: might ask it to pack to bit alignment.  (Note that an implementation
: may not legally add arguments to an existing language-defined pragma.)

: Whaddya think?

It all looks like the start of something very useful.  Of course, we'd have
to define a different pragma.  But, the idea of being able to construct
reasonably portable rep-specs seems like it should be do-able.  While Ada 94
(95?) seems to go part way, it seems there should be some means along the
lines that you describe that would support portability.  After all, it seems
that we always seem to do the same transformations when we port from VAX to
680x0 to x86 to various flavors of RISC (to VLIW?), whether in Ada or C/C++.
So why not support these transformations directly in the language (or at
least the language implementation).  As a user of Alsys products (and possible
future user of Verdix/Rational products), I'd be especially interested in
hearing what these companies might do to support this concept.  Of course, I
recognize that GNAT is targeted to a non-embedded market so that it would have
less need to be concerned with such extensions.



  parent reply	other threads:[~1994-11-23 12:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-11-18 21:04 Ada Portability... NOT! Capt. Britt Snodgrass
1994-11-19 16:55 ` Robert Dewar
1994-11-21  2:11   ` Carlos Perez
1994-11-21 13:17     ` Robert Dewar
1994-11-21 23:56   ` Keith Thompson
1994-11-22  3:53     ` Robert Dewar
1994-11-23 12:49     ` Michael J. Meier [this message]
1994-11-24 19:21       ` R_Tim_Coslet
1994-11-20  1:33 ` Carlos Perez
1994-11-21  5:06 ` Niklas Holsti
1994-11-21 16:19   ` Norman H. Cohen
1994-11-21 14:59 ` Mitch Gart
1994-11-21 15:40 ` Michael J. Meier
replies disabled

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