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-Thread: 103376,9f3f1b40d2533ab8 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.204.141.4 with SMTP id k4mr564455bku.6.1337192951986; Wed, 16 May 2012 11:29:11 -0700 (PDT) Path: e27ni317bkw.0!nntp.google.com!news1.google.com!goblin3!goblin2!goblin.stu.neva.ru!newsfeed.x-privat.org!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: Tero Koskinen Newsgroups: comp.lang.ada Subject: Re: Chicken or the egg. New targets & runtimes Date: Wed, 16 May 2012 21:29:10 +0300 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: <20120516212910.479ca67866ddfe8d25634cdb@iki.fi> References: <9934369.1060.1337090738467.JavaMail.geo-discussion-forums@yngr17> <23562031.232.1337111053220.JavaMail.geo-discussion-forums@ynz24> <31064186.285.1337113468939.JavaMail.geo-discussion-forums@ynbq3> <28126498.2000.1337186361343.JavaMail.geo-discussion-forums@ynff7> NNTP-Posting-Host: dsl-trebrasgw2-fe9cde00-96.dhcp.inet.fi Mime-Version: 1.0 X-Trace: munin.nbi.dk 1337192950 14292 80.222.156.96 (16 May 2012 18:29:10 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Wed, 16 May 2012 18:29:10 +0000 (UTC) X-Newsreader: Sylpheed 3.2.0beta6 (GTK+ 2.24.8; x86_64-redhat-linux-gnu) Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: 2012-05-16T21:29:10+03:00 List-Id: On Wed, 16 May 2012 09:39:21 -0700 (PDT) "Rego, P." wrote: > > Getting Ada with simple tasking on AVR8 would be nice just because of the large Arduino world, but I don't see any big reason to focus on AVR32. Unless, of course, somebody has an AVR32 board and wants to do the work. :) > For me it's more interesting to use tasking on AVR8. Actually would be very good to use it on an Arduino Duemilanove (Atmega328P). I am not so sure is it practical to use tasking on Arduino/Atmega328P. For example, if you have 4 tasks and divide memory equally, each task gets only about 512 bytes (2KB total / 4 = 512b and you need to reserve a little for the scheduler also). In addition, task switching overheard might become quite big, since you need to save quite many registers in every switch and processor CPU frequency is limited to 20MHz at maximum. But, I agree that (implementing) the tasking would be interesting, whether or not it being useful. :) -- Tero Koskinen - http://iki.fi/tero.koskinen/