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,17b924d1394824f2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-11 09:38:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hub1.nntpserver.com!xmission!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: GNAT and Atmel AVR Microcontrollers Date: 11 Dec 2001 12:28:42 -0500 Organization: NASA Goddard Space Flight Center Message-ID: References: <75k0v9.2k1.ln@320025674319.dialin.t-online.de> <87bsh89fdq.fsf@deneb.enyo.de> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1008091914 2410 128.183.220.71 (11 Dec 2001 17:31:54 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 11 Dec 2001 17:31:54 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Xref: archiver1.google.com comp.lang.ada:17772 Date: 2001-12-11T17:31:54+00:00 List-Id: karlran1234@yahoo.com (Karl Ran) writes: > Stephen Leake wrote in message news:... > > > Most likely no, if there's no Ada run-time library for the Atmel AVR > > > and its OS (haven't checked this, though). > > > However, if you are willing to use the C runtime (no tasking, no > > dynamic allocation, possibly no exceptions), it is not hard to get a > > subset of Ada working. > > That sounds intresting! > How much time would it take for a C&Ada programmer to get this mini AVR-Ada > working? Well, unfortunately, the honest answer is "it depends how good you are at compiling and fixing gcc and similar programs". It also depends on how weird your processor is. If it supports 8 bit memory reads, has a flat Von Neumann memory architecture, and hardware floating point, you're in good shape. Ada cares more about this stuff than C does. If you don't have 8 bit reads, you won't have the standard Character type without a lot of work. In C, you just say "char is 16 bits" and move on. I have not actually finished doing this for a processor, but I've started a couple times. I'd guess six person-months for a good first effort. -- -- Stephe