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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.176.3.87 with SMTP id 81mr6775023uat.35.1479238445625; Tue, 15 Nov 2016 11:34:05 -0800 (PST) X-Received: by 10.157.56.132 with SMTP id p4mr1795714otc.20.1479238445581; Tue, 15 Nov 2016 11:34:05 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.mixmin.net!enother.net!enother.net!enother.net!peer03.fr7!futter-mich.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!p16no1515573qta.1!news-out.google.com!x12ni1243ita.0!nntp.google.com!w132no106383ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 15 Nov 2016 11:34:05 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:191:8303:2100:302f:b9d8:b247:7dab; posting-account=fdRd8woAAADTIlxCu9FgvDrUK4wPzvy3 NNTP-Posting-Host: 2601:191:8303:2100:302f:b9d8:b247:7dab References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2c9029c3-c45e-4bb8-9695-434f82265137@googlegroups.com> Subject: Re: Getting started with bare-board development From: Robert Eachus Injection-Date: Tue, 15 Nov 2016 19:34:05 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Received-Body-CRC: 2336361293 X-Received-Bytes: 2718 Xref: news.eternal-september.org comp.lang.ada:32329 Date: 2016-11-15T11:34:05-08:00 List-Id: On Friday, November 11, 2016 at 5:19:35 PM UTC-5, Adam Jensen wrote: > Hi, I've recently began to have a serious look at Ada-2012 and > Spark-2014, and using GNAT for the development of real-time software in > embedded systems. What is a good way to get started? ...=20 > Also, do ARM processors make sense for safety critical systems? If not, > would it make more sense to target a different platform from the beginnin= g? Just a couple of reminders that you may want to put on your screen saver, o= r a plaque above your desk: Make it run, then make it right, then make it fast [Kent Beck] Premature optimization is the root of all evil [Donald Knuth] Moving from hardware to software, or mixing them together, it is sometimes = hard to remember this key to software development. With Ada you are best of= f pulling any interface or (software) algorithm into a package. Sometimes = a package you create this way will be implemented by interfacing to a libra= ry package, from the Ada RM, the device manufacturer, or a code repository.= Let the compiler do the hard work of eliminating unused code, call throug= hs, and inlining a short procedures and functions. You will be amazed at th= e small ratio between lines of source code (SLOC) and the size in bytes of = the resulting hardware module. (Don't forget to strip out the debugging su= pport, enumeration literals, etc., before measuring. ;-)