comp.lang.ada
 help / color / mirror / Atom feed
From: Tucker Taft <stt@averstar.com>
Subject: Re: Green Hiils AdaMULTI 2000 -> Motorola Coldfire
Date: Thu, 11 Jan 2001 09:03:10 -0500
Date: 2001-01-11T14:03:10+00:00	[thread overview]
Message-ID: <3A5DBD1E.D4C4C5F7@averstar.com> (raw)
In-Reply-To: 3a5d73cd$1@pull.gecm.com

Martin Dowie wrote:
> 
> Mark,
> 
> I don't know if the problems are still current, but here is a snippet
> from a conversion report to GH AdaMULTI (but targetted at PPC):
> 
> "The first problem we hit was where the ADA'83 code used types with
> 16 bit representation clauses to access 16 bit off board registers. In
> ADA'83 reading and writing to variables of these types compiled to
> a single access and the code worked fine. In GH ADA'95, however,
> the code was compiled into two byte accesses. This often had the effect
> of generating a bus error as some of the addresses in question cannot
> physically be accessed as 8 bits."
> 
> Some may argue that it was sloppy for the original code not have some
> embedded assembler to do the read/writing anyway, but that's not really
> the point here. I suspect that many projects don't go to this length if an
> "all Ada" version works.

pragma Atomic would presumably solve this problem in Ada 95.


-- 
-Tucker Taft   stt@avercom.net   http://www.averstar.com/~stt/
Chief Technology Officer, AverCom, Inc. (A Titan Company) Burlington, MA  USA
(AverCom was formed 1/1/01 from the Commercial Division of AverStar)
(http://www.averstar.com/services/ebusiness_applications.html)



  reply	other threads:[~2001-01-11 14:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-10 20:26 Green Hiils AdaMULTI 2000 -> Motorola Coldfire Mark Fisher
2001-01-11  8:56 ` Martin Dowie
2001-01-11 14:03   ` Tucker Taft [this message]
2001-01-11 14:22     ` Martin Dowie
2001-01-11 20:47       ` Larry Kilgallen
2001-01-11 14:44 ` Brian Courtney
2001-01-11 20:51   ` Robert Dewar
2001-01-12 13:18   ` Marc A. Criley
2001-01-12 17:44     ` Robert Dewar
replies disabled

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