I looked at MSL C Reference Version 10, pages 20 & 21, under the paragraph "Configuring Console I/O". Here is an excerpt:
Console I/O for stdin, stdout, and stderr can be configured in many different ways. The easiest way to configure console I/O is to have it turned off completely. When _MSL_CONSOLE_SUPPORT is off, MSL does not know about stdin, stdout, or stderr. Calls such as printf() are not placed in the standard C library
Grepping through the MSL, the only place that _MSL_CONSOLE_SUPPORT is defined is in
"C:\Freescale\CW MCU v10.7\MCU\M56800E Support\msl\MSL_C\MSL_Common\Include\ansi_parms.h".
Here is the pertinent code:
#if defined(_No_Console) && !defined(_MSL_CONSOLE_SUPPORT)
#define _MSL_CONSOLE_SUPPORT 0
#endif
#ifndef _MSL_CONSOLE_SUPPORT
#define _MSL_CONSOLE_SUPPORT 1
#endif
So, it looks like the documentation is a little behind because now the code keys off of "_No_Console" to disable the console.
Here is some history I found in the MSL comments:
C:\Freescale\CW MCU v10.7\MCU\M56800E Support\msl\MSL_C\MSL_Common\Include\console_io.h
/* Change record:
* ad 990128 Added #ifndef _No_Console */
C:\Freescale\CW MCU v10.7\MCU\M56800E Support\msl\MSL_C\MSL_Common\Src\assert.c
/* Change record:
* cc 020219 Redid the check for _No_Disk_File_OS_Support & _No_Console */
C:\Freescale\CW MCU v10.7\MCU\M56800E Support\msl\MSL_C\MSL_Common\Src\ansi_files.c
/* Change record:
* mm 980509 Removed static attribute so that it can be linked without error when _No_Console
* is defined. MW07076 */
C:\Freescale\CW MCU v10.7\MCU\M56800E Support\msl\MSL_C\MSL_Common_Embedded\Src\uart_console_io.c
#pragma ANSI_strict off /* _No_Console will be empty file */
So, I set _No_Console to 1 in the pre-defined symbols of the project properties and recompiled the libraries. Then I rebuilt my application. Unfortunately, the stdxxx_ buffers are still there.
stderr_buff (MSL C 56800E smm.lib ansi_files.o )
stdout_buff (MSL C 56800E smm.lib ansi_files.o )
stdin_buff (MSL C 56800E smm.lib ansi_files.o )
So, I'm still stuck.
How do I get the compiler to suppress generation of these buffers?
Regards...