TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Classic View

Use Monospaced Font
Show HTML Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
X-To: Simon Wright <[log in to unmask]>
Date: Fri, 16 Feb 2001 11:30:40 -0800
Reply-To: Greg Bek <[log in to unmask]>
From: Greg Bek <[log in to unmask]>
Content-Transfer-Encoding: 7bit
In-Reply-To: <[log in to unmask]>
Content-Type: text/plain; charset="iso-8859-1"
MIME-Version: 1.0
Parts/Attachments: text/plain (48 lines)
> -----Original Message-----
> From:  Simon Wright
> > From: [log in to unmask]
>
> > My interest lies in being able to generate some of the code and
> > being able to do the full round-trip engineering. We do embedded
> > systems and the capabilities of Rose for generating any code aren't
> > what we'd like.
>
...
> The main difficulty as I see it with closed code generators is that
> you need a lot of access to the internals to be able to cope with new
> generation-time options (if the model is like /this/, generate code
> like /that/).
>
> Rose/Ada doesn't give you a great deal of control (except through an
> amazing dialog box with more options than you could shake a stick at),
> and requires you to have a class in your model if you want a code
> package generated (so you get loads of support cruft in the design
> model, instantiations of generic containers etc). This makes reverse
> engineering difficult (even if Rose/Ada supported it) (even if it were
> a Good Thing).
>

Rose gives you a great deal of control, hence the dialog box with
the multitude of options.

I think the real challenge is that for any given design model there
exists many possible mappings to correct and valid source code in
a given language.

Rose/Ada as it implements one such mapping, with a variety of options
to control that mapping.

Rose also has it's own built in scripting language with complete access
to the model to permit you to write your own CG or RE tool.

The problem gets more complex when you take into account the desire
to reverse engineer source into a design model (a challenging problem).
The flexibility of most programming languages is such that it is
easy to lose information when translating back to a design langauge.

It gets more challenging when you want to round-trip code as then both
the code generator and the reverse engineering/analysis tool must be
very close and in-synch to be at all useful.

Greg

ATOM RSS1 RSS2