comp.lang.ada
 help / color / mirror / Atom feed
From: Robin Vowels <robin.vowels@gmail.com>
Subject: Re: Endianness and Record Specification
Date: Sun, 23 Sep 2012 19:44:50 -0700 (PDT)
Date: 2012-09-23T19:44:50-07:00	[thread overview]
Message-ID: <ca539569-ad08-4533-95f4-84803c883bd1@k3g2000pbr.googlegroups.com> (raw)
In-Reply-To: 17h1nrxowrnce$.1k4efgoidl6gc.dlg@40tude.net

On Sep 22, 7:59 pm, "Dmitry A. Kazakov" <mail...@dmitry-kazakov.de>
wrote:
> On Sat, 22 Sep 2012 02:32:17 -0700 (PDT), Robin Vowels wrote:
> > This won't help your problem, but
> > PL/I bit strings are stored in correct order regardless
> > of big-endian or little-endian machine on which the program runs.
> > The memory image is identical for both machine types.
>
> This does not make any sense.
>
> 1. Anything a language stores it does in the correct order, unless the
> compiler in broken. Just per definition, the correct order is the order
> used by the language.

I pointed out that in PL/I the order in which the bits are stored
is the same regardless of endian-ness.
Endian-ness came many years after the introduction of PL/I.

It shouldn't be an issue with Ada either.

> 2. As for logical order of bits, that depends exclusively on the hardware.
> As an example consider an A/D converter card which maps its registers onto
> certain physical addresses of the host machine. The compiler has no
> whatsoever influence on the bit, byte, word etc orders of the register as
> perceived by the host machine hardware.

That isn't relevant in determining the endian-ness.
An A-D converter isn't the processor, it's an attachment.



  reply	other threads:[~2012-09-24  2:44 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-21 18:16 Endianness and Record Specification awdorrin
2012-09-21 19:21 ` awdorrin
2012-09-22  3:07   ` Stephen Leake
2012-09-21 22:18 ` Simon Wright
2012-09-22  7:43 ` Quentin Ochem
2012-10-23 21:08   ` awdorrin
2012-10-24 10:20     ` Stephen Leake
2012-11-02 13:13       ` awdorrin
2012-12-04 17:17         ` Anh Vo
2012-12-04 17:37           ` Niklas Holsti
2012-12-04 18:31             ` Anh Vo
2012-12-04 23:31               ` Randy Brukardt
2012-12-05  0:12                 ` Anh Vo
2012-12-05  2:00                   ` Jeffrey Carter
2012-12-05  3:40                     ` Anh Vo
2012-09-22  9:32 ` Robin Vowels
2012-09-22  9:59   ` Dmitry A. Kazakov
2012-09-24  2:44     ` Robin Vowels [this message]
2012-09-24  7:48       ` Simon Wright
replies disabled

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