[En-Nut-Discussion] Thread-safe version of asctime

Ole Reinhardt ole.reinhardt at embedded-it.de
Thu May 8 22:02:06 CEST 2014

Hi Nathan,

Am 07.05.2014 16:25, schrieb Nathan Moore:
> If I may offer a suggestion, I think that it would be a good idea to move
> the asctime_r and asctime functions into different source files so that if
> users wish to avoid using the asctime function and would like to save space
> they would avoid the extra code and static buffer space.  This might be an
> issue on AVR, and if all of the old static buffer functions were not linked
> in when only the _r versions were used the space savings could add up to
> something noticable.

Im quite sure that modern compilers/linkers should sort out the not-used
functions and also the static buffer, if it is not used by the
application. Independend of the fact that it is written in the same or
seperate files.

At least on the cortex M3 I only find functions, that I use in my .map
file, but I'm not sure about the AVR.



kernel concepts GmbH            Tel: +49-271-771091-14
Sieghuetter Hauptweg 48         Mob: +49-177-7420433
D-57072 Siegen

More information about the En-Nut-Discussion mailing list