nuttx/libc/stdio
Dimitry Kloper 06d83c6261 Introduce support for Atmel toolchain in-flash strings
Atmel toolchain AVR compiler provides a transparent in-flash object support using __flash and __memx symbols. The former indicates to compiler that this is a flash-based object.  The later used with pointer indicates that the referenced object may reside either in flash or in RAM. The compiler automatically makes 32-bit pointer with flag indicating whether referenced object is in flash or RAM and generates code to access either in run-time. Thus, any function that accepts __memx object can transparently work with RAM and flash objects.

For platforms with a Harvard architecture and a very small RAM like AVR this allows to move all constant strings used in trace messages to flash in the instruction address space, releasing resources for other things.

This change introduces IOBJ and IPTR type qualifiers.  The 'I' indicates that the object may like in instruction space on a Harvard architecture machine.

For platforms that do not have __flash and __memx or similar symbols IOBJ and IPTR are empty, making the types equivalent to, for example, 'const char' and 'const char*'.  For Atmel compiler these will become 'const __flash char' and 'const __memx char*'.  All printf() functions and syslog() functions are changed so that the qualifier is used with the format parameter.

From: Dimitry Kloper <dikloper@cisco.com>
2016-01-05 10:29:29 -06:00
..
lib_asprintf.c Introduce support for Atmel toolchain in-flash strings 2016-01-05 10:29:29 -06:00
lib_clearerr.c OK.. I think the directory has been recovered and renamed 2012-11-10 16:34:46 +00:00
lib_dprintf.c Introduce support for Atmel toolchain in-flash strings 2016-01-05 10:29:29 -06:00
lib_dtoa.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_fclose.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_feof.c Fix all occurrences of "the the" in documentation and comments 2013-08-27 09:40:19 -06:00
lib_ferror.c Complete fragmentary support for ferror(). From Macs N 2014-03-31 09:39:10 -06:00
lib_fflush.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_fgetc.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_fgetpos.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_fgets.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_fileno.c Add support for freopen() 2015-11-22 08:39:17 -06:00
lib_fopen.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_fprintf.c Introduce support for Atmel toolchain in-flash strings 2016-01-05 10:29:29 -06:00
lib_fputc.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_fputs.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_fread.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_freopen.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_fseek.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_fsetpos.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_ftell.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_fwrite.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_gets_s.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_gets.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_libdtoa.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_libfflush.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_libfgets.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_libflushall.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_libfread.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_libfwrite.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_libnoflush.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_libsnoflush.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_libsprintf.c Introduce support for Atmel toolchain in-flash strings 2016-01-05 10:29:29 -06:00
lib_libvsprintf.c Introduce support for Atmel toolchain in-flash strings 2016-01-05 10:29:29 -06:00
lib_lowinstream.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_lowoutstream.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_meminstream.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_memoutstream.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_memsistream.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_memsostream.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_nullinstream.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_nulloutstream.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_perror.c More trailing whilespace removal 2014-04-13 14:32:20 -06:00
lib_printf.c Introduce support for Atmel toolchain in-flash strings 2016-01-05 10:29:29 -06:00
lib_puts.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_rawinstream.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_rawoutstream.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_rawsistream.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_rawsostream.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_rdflush.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_snprintf.c Introduce support for Atmel toolchain in-flash strings 2016-01-05 10:29:29 -06:00
lib_sprintf.c Introduce support for Atmel toolchain in-flash strings 2016-01-05 10:29:29 -06:00
lib_sscanf.c nuttx/libc: Fix some spacing and alignment issues 2015-10-12 07:45:02 -06:00
lib_stdinstream.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_stdoutstream.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_stdsistream.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_stdsostream.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_tempnam.c Add tmpnam() and tempnam() 2014-11-05 10:44:16 -06:00
lib_tmpnam.c Add tmpnam() and tempnam() 2014-11-05 10:44:16 -06:00
lib_ungetc.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_vasprintf.c Introduce support for Atmel toolchain in-flash strings 2016-01-05 10:29:29 -06:00
lib_vdprintf.c Introduce support for Atmel toolchain in-flash strings 2016-01-05 10:29:29 -06:00
lib_vfprintf.c Introduce support for Atmel toolchain in-flash strings 2016-01-05 10:29:29 -06:00
lib_vprintf.c Introduce support for Atmel toolchain in-flash strings 2016-01-05 10:29:29 -06:00
lib_vsnprintf.c Introduce support for Atmel toolchain in-flash strings 2016-01-05 10:29:29 -06:00
lib_vsprintf.c Introduce support for Atmel toolchain in-flash strings 2016-01-05 10:29:29 -06:00
lib_wrflush.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
lib_zeroinstream.c Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
Make.defs Add support for freopen() 2015-11-22 08:39:17 -06:00