comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Endianness and Record Specification
Date: Sat, 22 Sep 2012 11:59:13 +0200
Date: 2012-09-22T11:59:13+02:00	[thread overview]
Message-ID: <17h1nrxowrnce$.1k4efgoidl6gc.dlg@40tude.net> (raw)
In-Reply-To: e8aaa597-ad01-42a9-a5db-cca5dd077fd1@k3g2000pbr.googlegroups.com

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.

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.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2012-09-24  7:18 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 [this message]
2012-09-24  2:44     ` Robin Vowels
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