On Sun, 2 Mar 2014, Klaus Rudolph wrote:

Was the idea to simplify the usage of all the tools?

It is easier to give:

avr-gcc -g -O2 -mmcu=atmega16 -o fred.elf
-Wl,--section-start=.siminfo=0x900000 fred.c

instead of including only a header file?

The given command line looks much more complicated than the command line
for simulavr itself with needed info parms.

I dislike this solution! Manually adding linker infos on the command
line is never an option for me. Introducing such very secial solutions
to "simplify" the usage of simulavr looks not the perfect way :-) So
please do not introduce this feature in that way. It is terrible!

That is why Odin invented make files and wrapper scripts:
LDFLAGS+= -Wl,--section-start=.siminfo=0x900000
or
simulavr-gcc:
avr-gcc -Wl,--section-start=.siminfo=0x900000 "$*"

--
Michael   henne...@web.cs.ndsu.nodak.edu
"SCSI is NOT magic. There are *fundamental technical
reasons* why it is necessary to sacrifice a young
goat to your SCSI chain now and then."   --   John Woods

_______________________________________________
Simulavr-devel mailing list
Simulavr-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/simulavr-devel

Reply via email to