comp.lang.ada
 help / color / mirror / Atom feed
From: Jacob Sparre Andersen <sparre@nbi.dk>
Subject: Re: Converting application from BIG ENDIAN to LITTLE ENDIAN machine
Date: 23 Apr 2004 20:59:20 +0200
Date: 2004-04-23T20:59:20+02:00	[thread overview]
Message-ID: <plllkma5br.fsf@sparre.crs4.it> (raw)
In-Reply-To: 89219f7f.0404230750.12f64b28@posting.google.com

Claude Riendeau wrote:

> I'm new to ADA and this is probably a classical.

Writing Ada "Ada" and not "ADA" would have concealed this a bit. :-)

> I have to have this large application that was programmed for a BIG
> ENDIAN machine to run on a LITTLE ENDIAN machine.  I need to reorder
> all the records BIT definitions (at 0 range 3 .. 12), and I have
> 10000+ lines of code to convert.  I'd like to automate this.

Have you considered simply to use "Bit_Order" to handle this?  Take a
look at chapter 13 in the Ada Reference Manual for a formal
description of how it works.

Jacob
-- 
from DoD Directive 2000.12

"DEFINITIONS
(...)
 18. Terrorism.  The calculated use of violence or threat of
 violence to inculcate fear; intended to coerce or to
 intimidate governments or societies in the pursuit of goals
 that are generally political, religious, or ideological."



  parent reply	other threads:[~2004-04-23 18:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-23 15:50 Converting application from BIG ENDIAN to LITTLE ENDIAN machine Claude Riendeau
2004-04-23 17:16 ` Jean-Pierre Rosen
2004-04-23 18:59 ` Jacob Sparre Andersen [this message]
2004-04-23 21:42   ` Stephen Leake
2004-04-23 21:49 ` Stephen Leake
replies disabled

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