From: Florian Weimer <fw@deneb.enyo.de>
Subject: Re: Question about "for X'Size use ..."
Date: Fri, 10 Aug 2001 22:25:44 +0200
Date: 2001-08-10T22:25:44+02:00 [thread overview]
Message-ID: <87ofpnzmpj.fsf@deneb.enyo.de> (raw)
In-Reply-To: 5ee5b646.0108100911.1e1b02fb@posting.google.com
dewar@gnat.com (Robert Dewar) writes:
> The mention of storing the sign is a bit bogus, given that virtually
> all machines are twos complement now.
Hmm, the DSP on one of the sound cards lying around here is a
one-complement architecture, but you're right nevertheless.
> More importantly you now get complete interoperability for the type
>
> type x is range 0 .. 255;
> for x'size use 8;
>
> which was not the case before
But the cases in which one stream element is written are the only ones
which are specified completely. The others still remain open. I find
this highly undesirable.
With the current scenario, you don't even achieve cross-compiler
compatibility on the same architecture. For example, a vendor might
have chosen to write integers generally in big-endian format,
independently of the preferred order of the architecture, to gain
cross-architecture compatibility for this compiler.
> If you think an AI is pointless, you are probably missing something.
Probably. I'm still a bit irritated because people are dealing with
such issues and do not tackle the more eminent problem of specifying
the byte/octet order for discrete types (both in-memory representation
and stream I/O layout).
next prev parent reply other threads:[~2001-08-10 20:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-09 17:02 Question about "for X'Size use ..." Darren New
2001-08-09 17:37 ` Florian Weimer
2001-08-09 22:39 ` Robert Dewar
2001-08-10 8:46 ` Florian Weimer
2001-08-10 10:36 ` Larry Kilgallen
2001-08-10 13:15 ` Question about Ted Dennison
2001-08-10 13:54 ` Larry Kilgallen
2001-08-10 17:09 ` Question about "for X'Size use ..." Robert Dewar
2001-08-10 17:11 ` Robert Dewar
2001-08-10 20:25 ` Florian Weimer [this message]
2001-08-10 21:43 ` Larry Kilgallen
2001-08-10 20:58 ` Toshitaka KUMANO
2001-08-10 14:46 ` john mann
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox