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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,bc39cb7895d6075a X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!postnews.google.com!26g2000hsk.googlegroups.com!not-for-mail From: Britt Snodgrass Newsgroups: comp.lang.ada Subject: Re: Is there an Ada port to Microchip PIC? Date: Fri, 18 Jul 2008 20:08:43 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 209.252.169.21 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1216436923 21552 127.0.0.1 (19 Jul 2008 03:08:43 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 19 Jul 2008 03:08:43 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 26g2000hsk.googlegroups.com; posting-host=209.252.169.21; posting-account=rdRzuwoAAAAyW3CSBhs_xgfCUJSc1aNt User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:1224 Date: 2008-07-18T20:08:43-07:00 List-Id: On Jul 18, 5:13 pm, Bernd.Spe...@gmx.com (Bernd Specht) wrote: > Does anyone know whether there is an Ada port for PICs available? I have do > write some code for an 18Fxxx with CAN-bus interface and would like to do it > with Ada. I look for native code generation, not for an indirection using > intermediate C code. > > Thanks, > Bernd If you have to use an actual PIC 18Fxxx then I think you won't find an Ada compiler. The 8-bit PICs have a rather ugly programming architecture (especially if writing in PIC assembly language). If you could instead use one of the new PIC-32s which are based on MIPS architecture then its probable you could create or find a GNAT port. There is also a GNAT port for the 8-bit Atmel AVR chips but I don't know if any of them come with a CAN bus capability. Green Hills Software supports PIC-32 with their C & C++ compilers. I asked if they planned to port their Ada compiler but their response indicated they wanted a first customer to pay for the port. I've long thought that the lack of Ada compilers for popular, peripheral-rich microcontrollers is the principal reason that Ada hasn't been adopted by more embedded programming hobbyists. - Britt