avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-libc-dev] OPTIMIZE_SPEED for avr5?


From: Eric Weddington
Subject: RE: [avr-libc-dev] OPTIMIZE_SPEED for avr5?
Date: Tue, 06 Mar 2007 09:42:39 -0700

 

> -----Original Message-----
> From: 
> address@hidden 
> [mailto:address@hidden
> org] On Behalf Of Joerg Wunsch
> Sent: Tuesday, March 06, 2007 8:02 AM
> To: address@hidden
> Subject: Re: [avr-libc-dev] OPTIMIZE_SPEED for avr5?
> 
> As David Brown wrote:
> 
> > Size is the main priority when you are low on flash space -
> > otherwise, it is irrelevant.  If your chosen AVR has 16k flash, then
> > it does not matter if the program code takes 2k or 15.9k of that
> > flash.  In particular, for smaller devices, program space will be at
> > a premium, while for the larger devices, much of the flash will
> > often be things like tables or other data that is of fixed size.
> 
> The issue here is, to the best of my knowledge, we don't have access
> to the -O level when linking, so we cannot operate depending on the
> user's wishes.  We thus have to decide for *one* implementation that
> goes into the library.
> 
> Perhaps we could offer different sets of libraries containing these
> functions in their speed-optimized version, in the same sense as we
> are already offering different sets of printf and scanf libraries.
> That way, the users can decide to use a different implementation if
> they prefer (say, -lc is equivalent to -lc_size while there's a
> different -lc_fast available).

Thanks, Joerg! You beat me to it! I was going to suggest something akin to
that.

And I would definitely agree that the default should be size and then have a
separate speed optimized version of the library.

Eric





reply via email to

[Prev in Thread] Current Thread [Next in Thread]