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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Help with embedded hardware/software platform selection for ADA Date: Tue, 2 Jul 2013 19:27:08 +0200 Organization: cbb software GmbH Message-ID: References: <31f9819e-6509-4d67-acea-4d2ba9a96c04@googlegroups.com> <4csim6j63mk4.1c54vo5v7eu8c.dlg@40tude.net> <51d280e7$0$6556$9b4e6d93@newsspool4.arcor-online.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: xkOZ88C3T5fLavXpgyt3vA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 X-Original-Bytes: 3242 Xref: number.nntp.dca.giganews.com comp.lang.ada:182229 Date: 2013-07-02T19:27:08+02:00 List-Id: On Tue, 2 Jul 2013 16:52:59 +0000 (UTC), Simon Clubley wrote: > On 2013-07-02, Dmitry A. Kazakov wrote: >> On Tue, 02 Jul 2013 09:27:40 +0200, Georg Bauhaus wrote: >>> >>> I still wonder why not a single vendor sells a Ravenscar run-time >>> with compiler at a hobbyist price, without support. >> >> Why a hobbyist would even look at Ravenscar? >> >> IMO, a hobbyist if not obsessed with systems programming, wants full Ada >> and a "normal" OS. This is quite possible to have today. And this is where >> Ada shines, because you can develop and test on a PC and then just >> recompile the code for the embedded target without any changes. At least >> this is the way we do it. > > It's not just systems programming, but hard realtime programming. > > If you are using a "normal" OS, can I assume you don't have a hard > real-time requirement (at least within the Ada code itself) ? Hard realtime is to a great extent a fiction. If your system becomes fragile upon us jitter there should be something wrong with the architecture. Otherwise there is no problem to have a 100us control loop under a "normal" OS like Linux or VxWorks. Even under Windows you can have stable 5ms (Windows has timer resolution issues, performance is basically OK). We do some control under normal Windows using I/O terminals connected through normal networks, e.g. ModBus over TCP/IP. Of course, we could not certify such a system, but we don't care. A hobbyist would care even less. > A number of the project areas which interest hobbyists have a realtime > component to them and a number of those have a hard realtime component. Unless you are dealing with burning processes (a bomb? (:-)) you do not need cycles tighter than 1ms. And jitter is not an issue anyway. Furthermore, a good AD/DA converter is not quicker than 40us. Which adds 80us to the loop no matter what. Don't tell me that the GPIO ARM has is anywhere close to this. So 100us would be the theoretical minimum. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de