This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

iostream buffers size

Hello!

I'd like to use <iostream> in my project.
For start I took an example from "Examples\C++\Example1\OstrStl" folder and build it.
All was success but in in "map" file I found the following surprise:

  std::__rw_cin_databuf                    0x20000090   Data         512  ios.o(.bss)
    std::__rw_cout_databuf                   0x20000338   Data         512  ios.o(.bss)
...
    std::__rw_wcerr_databuf                  0x20001460   Data        1024  ios.o(.bss)
    std::__rw_wclog_databuf                  0x20001900   Data        1024  ios.o(.bss)

I really don't need so large buffers! How to reduce this memory consuption?

As first step I tryed to change stdio.h defines

#define STDIN_BUFSIZ  (64)  /* default stdin buffer size */
#define STDOUT_BUFSIZ (64)  /* default stdout buffer size */
#define STDERR_BUFSIZ (16)  /* default stderr buffer size */

unfortunately without any results:(

0