We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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:(