>
>
> > has exactly the same effect as:
> >
> >       A_String[i] = 0xff;
> >       A_String[i + 1] = 0x00;
> >       delay_about_1000_processor_cycles();
> >       waste_about_2000_bytes_of_code_space();
>
> ROTF ! :-))))
>
As was earlier, and more gently pointed out by Dave, Sprintf was pretty
wasteful.
It worked though, and that's what the programmers here suggested I use.
They are "big iron" guys, so less sensitive to the costs.
Also, given that I had plenty of code space and cycles, the use of sprintf
was "good enough", in that it allowed me to demonstrate the system, and show
live data from my sensors.

Dropping the data into the array is unarguably more efficient, and I shall
use that approach in the future.

I will admit to being ignorant in C, but I'm not stupid.  :)
_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to