comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Courtney <bcourtn@hercii.mar.lmco.com>
Subject: Re: Green Hiils AdaMULTI 2000 -> Motorola Coldfire
Date: Thu, 11 Jan 2001 09:44:37 -0500
Date: 2001-01-11T09:44:37-05:00	[thread overview]
Message-ID: <3A5DC6D5.5A8446D8@hercii.mar.lmco.com> (raw)
In-Reply-To: 93igkj$grt$1@lure.pipex.net

We recently ported a 200,000+ sloc app (MIPS) from Ada83 (Aonix)
to GHS Ada95 as part of an evaluation of the AdaMULTI2000
environment.  The only problem we experienced was not
with the compiler/environment, rather some bad assumptions
made by the original developers about the size of subtypes.
NOTE: The language does not require objects of a subtype to
be the same size as objects of the parent type.  As you
might expect, the two compilers implemented this differently.
The Aonix Ada83 compiler would preserve the size of subtypes
from the parent type and the GHS Ada95 compiler would not (it
seemed to chose the smallest size possible based on the range
of the subtype).  Either implementation is allowed by the language.

A misunderstanding by the developers, or an oversight in the
language? Either way, this issue has plagued more than one
project, so it may be something you want to be on the lookout for.
I've used XDAda in the past, but can't recall its behavior.  In any
event, the moral of the story is "don't assume the size of a subtype".

Hope this helps,

Brian Courtney

Mark Fisher wrote:

> I am currently getting to grips with the Green Hills `AdaMULTI`
> compiler/environment
> using the Coldfire MCF5307 processor.
>
> In the coming weeks I am doing some risk reduction which is
> being ported from XDAda (83) / Motorola 68020.
>
> Any tips for a new AdaMULTI user? In particular are there known
> weaknesses/problems
> that I should steer clear of?
>
> Many thanks
>
> Mark




  parent reply	other threads:[~2001-01-11 14:44 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
2001-01-11 14:22     ` Martin Dowie
2001-01-11 20:47       ` Larry Kilgallen
2001-01-11 14:44 ` Brian Courtney [this message]
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