From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.acm.org>
Subject: Re: Bit operations in Ada (endianness)
Date: Mon, 02 Jun 2008 18:22:48 GMT
Date: 2008-06-02T18:22:48+00:00 [thread overview]
Message-ID: <YTW0k.136944$TT4.69314@attbi_s22> (raw)
In-Reply-To: <C469BBBF.EAE06%yaldnif.w@blueyonder.co.uk>
(see below) wrote:
> On 02/06/2008 14:27, in article g20sg4$nkb$1@aioe.org, "Dennis Hoppe"
> <dennis.hoppe@hoppinet.de> wrote:
>
>> I also wonder, if I can query the operating system via Ada,
>> which endianness it uses.
>
> No need to talk to the OS.
> Try something like this:
[large hunk of code omitted]
Or you can just check System.Default_Bit_Order.
Bit order is not technically the same as byte order, but I'm not aware of any
system on which they're different.
--
Jeff Carter
"He didn't get that nose from playing ping-pong."
Never Give a Sucker an Even Break
110
next prev parent reply other threads:[~2008-06-02 18:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-23 21:19 Bit operations in Ada Dennis Hoppe
2008-05-23 22:08 ` Ludovic Brenta
2008-05-24 15:36 ` Simon Wright
2008-06-02 13:27 ` Bit operations in Ada (endianness) Dennis Hoppe
2008-06-02 14:01 ` (see below)
2008-06-02 18:22 ` Jeffrey R. Carter [this message]
2008-06-02 17:38 ` Ludovic Brenta
2008-05-23 22:38 ` Bit operations in Ada Robert A Duff
2008-05-24 0:27 ` Randy Brukardt
2008-05-24 9:40 ` Bit operations in Ada (Thank you) Dennis Hoppe
2008-05-23 23:25 ` Bit operations in Ada Jeffrey R. Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox