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,b4945ea154eefb5f X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.233.69 with SMTP id tu5mr13690615pbc.6.1334677043621; Tue, 17 Apr 2012 08:37:23 -0700 (PDT) Path: r9ni67042pbh.0!nntp.google.com!news1.google.com!goblin2!goblin.stu.neva.ru!aioe.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Building gnat-gpl-2011-avr-windows from scratch in GPS Date: Tue, 17 Apr 2012 16:37:23 +0100 Organization: A noiseless patient Spider Message-ID: References: <20256137.216.1333941508115.JavaMail.geo-discussion-forums@vbpp14> <11114179.137.1334181998473.JavaMail.geo-discussion-forums@ynej18> <20a04e0a-04b9-4bc9-bb94-04ba35e451d0@f27g2000yqc.googlegroups.com> <11248607.6.1334624480758.JavaMail.geo-discussion-forums@yndc3> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="15889"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+cjMEL26eMyobN1cG4yGQSIYrEgUYijzc=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (darwin) Cancel-Lock: sha1:mcE9+emyuB9rP27ROEGaNFHAapg= sha1:5u4LwqAE4RsdXtcY4reV9Wmxn34= Content-Type: text/plain; charset=us-ascii Date: 2012-04-17T16:37:23+01:00 List-Id: "Rego, P." writes: >> AdaCore's AVR compiler comes with a sample application somewhere (I >> don't remember where). > I also could not find. > >> When using gcc for AVR you have to specify the target MCU at the >> compile and link steps with the option -mmcu=. In your >> example you missed that option in the compile step. > Ok. I will put this. > >> AVR-Ada /= AdaCore's AVR compiler. > Yes. The http://student.agh.edu.pl/~mkucia/wiki/doku.php?id=avrada > tutorial In that tutorial, the author says The most important line is: avr-gnatmake main -o $@ -Os -mmcu=avr4 --RTS=zfp -largs crtm8._o -nostdlib -lgcc -mavr4 -Tdata=0x00800200 whch implies that [avr-]gnatmake knows to apply -mmcu= wherever needed; might simplify things!