comp.lang.ada
 help / color / mirror / Atom feed
From: Matteo Bordin <matteo.bordin@gmail.com>
Subject: Re: Comparison : Ada and UML (comparison… indeed)
Date: Fri, 12 Nov 2010 08:27:08 -0800 (PST)
Date: 2010-11-12T08:27:08-08:00	[thread overview]
Message-ID: <6e65c90c-c1a5-4ec8-ac00-6640395b414d@o2g2000vbh.googlegroups.com> (raw)
In-Reply-To: m2r5esx3vp.fsf@pushface.org


> >> There has to be some sort of profile (both in allowable UML constructs
> >> and what they mean in terms of program execution). "If you model like
> >> _this_ and generate code using _our generator_, the result will work
> >> like _that_".
>
> > Sure, but this way you may risk to model your application based on a
> > precise code generation strategy, possibly loosing portability and
> > platform-independence of models.
>
> Even a PIM has to have pretty precise semantics. I suppose I should have
> said, "If you model like _this_ and generate code using _our
> *standard-conformng* generator_, the result will work like _that_".
>
> If that's not so, the platform-independence isn't worth much.

Right: model semantics shall not be dependent on the code generator
otherwise model-based verification results may not be valid anymore if
you change code generator.

Example: HRT-HOOD (an extension of HOOD 3.1 for real-time systems) was
conceived as a language/method to design *Ada* systems - i.e. its
dynamic semantics was defined in terms of Ada constructs. The language/
method and its mapping to Ada were in fact inseparable. Now, suppose
you perform some kind of real-time analysis on your HRT-HOOD model: is
it still valid if you change code generator and/or target language?
Possibly not, meaning that you may need to update your model-based
verification tool to cope with your new code generator. This is the
main risk of coupling modeling language semantics with code gen
strategy.

The dynamic semantics of HRT-UML/RCM, the successor of HRT-UML, was
based on the abstract notion of Ravenscar Computational Model in the
hope that the model-based real-time analysis would be independent of
the code generator - of course assuming the code generator was able to
generate code conforming to the HRT-UML/RCM semantics.



  parent reply	other threads:[~2010-11-12 16:27 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-31  6:22 Comparison : Ada and UML (comparison… indeed) Yannick Duchêne (Hibou57)
2010-10-31  7:11 ` Simon Wright
2010-10-31  8:01   ` Yannick Duchêne (Hibou57)
2010-10-31  8:33     ` Vinzent Hoefler
2010-10-31 10:18       ` Yannick Duchêne (Hibou57)
2010-10-31 10:45         ` Vinzent Hoefler
2010-10-31 10:53         ` Yannick Duchêne (Hibou57)
2010-10-31 10:32       ` Yannick Duchêne (Hibou57)
2010-10-31 10:47       ` J-P. Rosen
2010-10-31 11:00         ` Yannick Duchêne (Hibou57)
2010-11-09 11:04           ` Matteo Bordin
2010-11-09 14:27             ` J-P. Rosen
2010-11-09 17:44               ` Matteo Bordin
2010-11-09 21:17                 ` J-P. Rosen
2010-11-10  9:23                   ` Matteo Bordin
2010-11-10 15:32                     ` J-P. Rosen
2010-11-09 20:02             ` Simon Wright
2010-11-10  9:34               ` Matteo Bordin
2010-11-10 21:31                 ` Simon Wright
2010-11-10 21:43                   ` Vinzent Hoefler
2010-11-11  7:40                     ` J-P. Rosen
2010-11-12 16:36                       ` Matteo Bordin
2010-11-12 16:37                       ` Matteo Bordin
2010-11-12 18:24                         ` J-P. Rosen
2010-11-12 16:27                   ` Matteo Bordin [this message]
2010-10-31 10:43     ` J-P. Rosen
2010-10-31 10:40 ` J-P. Rosen
replies disabled

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