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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,567c75d71a7993ab X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.220.230 with SMTP id pz6mr134999pbc.3.1340929912550; Thu, 28 Jun 2012 17:31:52 -0700 (PDT) Path: l9ni31378pbj.0!nntp.google.com!news1.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsgate.cuhk.edu.hk!news.netfront.net!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Would this be logical for embedded hardware? Date: Thu, 28 Jun 2012 17:31:46 -0700 Organization: Also freenews.netfront.net; news.tornevall.net Message-ID: References: <52386bce-0e18-45e0-a172-e2f8df7d211f@googlegroups.com> NNTP-Posting-Host: 184.20.201.198 Mime-Version: 1.0 X-Trace: adenine.netfront.net 1340929912 51281 184.20.201.198 (29 Jun 2012 00:31:52 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Fri, 29 Jun 2012 00:31:52 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 In-Reply-To: <52386bce-0e18-45e0-a172-e2f8df7d211f@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-06-28T17:31:46-07:00 List-Id: On 06/28/2012 04:54 PM, Patrick wrote: > > I have been trying to find a RTOS to partner with Ada but there is a dizzying > array of them. It seems like the ones held in highest regard are closed > source and expensive. I also don't have hard deadlines, near realtime is just > fine. Linux would be fine but I can't imagine fitting it on a device and > still having enough GPIO lines left over to do what I want with. This sounds like what was commonly heard about Ada-83 tasking: it won't be fast enough, or will use too much memory/CPU/whatever, so we won't use it and will write a cyclic executive instead. Those who actually used tasks usually found them that they worked fine, and resulted in a much simpler design as well. So don't write off something that would be "fine" without substantiation. > With those items in mind, here is what I was thinking.... 32 bit > microcontrollers are dirt cheap and many come with ethernet built in and > TCP/IP libraries. > > If I broke the instrument down in to various modules, keypad, > computer-controlled power supply, optical system, detector etc. I could > assign a microcontroller to each module and program that MCU in C. The C > program could pretty much do one thing only. I've worked on embedded systems like this (multiple networked 32-bit processors), but they were all developed in Ada. I don't see why you couldn't use Ada for all the processors in your system, too. And you could look into SoftTech's compiler that generates C if you have difficulty finding an Ada compiler targeting your processor of choice. -- Jeff Carter "Have you gone berserk? Can't you see that that man is a ni?" Blazing Saddles 38 --- Posted via news://freenews.netfront.net/ - Complaints to news@netfront.net ---