From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fba8595cda50c2ec X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-31 14:14:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!kibo.news.demon.net!news.demon.co.uk!demon!pogner.demon.co.uk!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada automatic code generation for Simulink models Date: 31 May 2002 21:59:04 +0100 Organization: Pushface Sender: simon@smaug Message-ID: References: <3CF539BA.32BE0D15@NOSPAM.visteon.com> <3CF7DADA.77DB9166@NOSPAM.visteon.com> NNTP-Posting-Host: pogner.demon.co.uk X-NNTP-Posting-Host: pogner.demon.co.uk:62.49.19.209 X-Trace: news.demon.co.uk 1022879599 nnrp-12:26049 NO-IDENT pogner.demon.co.uk:62.49.19.209 X-Complaints-To: abuse@demon.net User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Xref: archiver1.google.com comp.lang.ada:25120 Date: 2002-05-31T21:59:04+01:00 List-Id: John Kern writes (reordered to convention): > Simon Wright wrote: > > > > John Kern writes: > > > > > I see that the Mathworks is dropping support for automatically > > > generating Ada code from Simulink models. Has anyone from this > > > group tried this product for developing control software and found > > > it to be less than useful? There seems to be a big push in the > > > automotive industry for auto code generation of embedded > > > controllers. Too bad that we seem to be stuck with C. > > > > I don't see quite why it matters, if you trust the generator? The C is > > likely to be pretty readable (well, I guess I mean regularly > > structured). Unless you get to modify the generated code .. > > I guess what your are saying is to go ahead and allow code generators to > use the "Universal Assembly" language, and use Ada for only the parts > that cannot be modeled. The auto industry is endeavoring to model the > whole ECU in either Simulink or UML, leaving no room or need for > generated Ada code. However we still get bogged down with the > standardization and modeling of the tasking kernel, the unsafe C > constructs and MISRA compliance, weak typing and the representations of > variables, etc. which didn't seem to be that big a problem when using > Ada. I did say "if you trust the generator". Clearly generating Ada provides some external check on the generated code. I would personally have little problem with a generated C model called up by Ada (though your mention of "tasking kernel" does give me pause. Does the generated code use this tasking kernel? perhaps that's a new can of worms).