From: Simon Wright <simon@pushface.org>
Subject: Re: Building gnat-gpl-2011-avr-windows from scratch in GPS
Date: Tue, 17 Apr 2012 16:37:23 +0100
Date: 2012-04-17T16:37:23+01:00 [thread overview]
Message-ID: <m2bomql68c.fsf@pushface.org> (raw)
In-Reply-To: 11248607.6.1334624480758.JavaMail.geo-discussion-forums@yndc3
"Rego, P." <pvrego@gmail.com> 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=<name of mcu>. 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!
next prev parent reply other threads:[~2012-04-17 15:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-09 3:18 Building gnat-gpl-2011-avr-windows from scratch in GPS Rego, P.
2012-04-09 7:23 ` Simon Wright
2012-04-11 22:06 ` Rego, P.
2012-04-15 16:02 ` Rolf
2012-04-17 1:01 ` Rego, P.
2012-04-17 15:37 ` Simon Wright [this message]
2012-04-17 16:58 ` Brian Drummond
2012-04-17 19:29 ` Simon Wright
2012-04-17 21:19 ` Brian Drummond
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox