Re: [Mingw-w64-public] C++ cout executable size

2017-06-02 Thread bob by
2017-06-03 5:26 GMT+04:00 Liu Hao : > On 2017/6/3 0:18, bob by wrote: > >> Can't find the code of std::ios_base::Init >> >> It should be somewhere in here, but I can't find it: >> https://gcc.gnu.org/onlinedocs/gcc-6.3.0/libstdc++/api/a00801.html >> >> Why do you want to find its source? It is mer

Re: [Mingw-w64-public] C++ cout executable size

2017-06-02 Thread Liu Hao
On 2017/6/3 0:18, bob by wrote: Can't find the code of std::ios_base::Init It should be somewhere in here, but I can't find it: https://gcc.gnu.org/onlinedocs/gcc-6.3.0/libstdc++/api/a00801.html Why do you want to find its source? It is merely the answer to your previous question: `#include

Re: [Mingw-w64-public] C++ cout executable size

2017-06-02 Thread Ruben Van Boxem
Op 2 jun. 2017 9:54 p.m. schreef "bob by" : 2017-06-02 22:24 GMT+04:00 Ruben Van Boxem : > Be sure to check the final program code size in case of using such a > utility library vs just the C++ standard library. You might be surprised... > > Also important to note c++ isn't just an object oriente

Re: [Mingw-w64-public] C++ cout executable size

2017-06-02 Thread bob by
2017-06-02 22:24 GMT+04:00 Ruben Van Boxem : > Be sure to check the final program code size in case of using such a > utility library vs just the C++ standard library. You might be surprised... > > Also important to note c++ isn't just an object oriented language. It is so > much more. If you get

Re: [Mingw-w64-public] C++ cout executable size

2017-06-02 Thread Ruben Van Boxem
Op 2 jun. 2017 3:32 p.m. schreef "LRN" : On 6/2/2017 3:53 PM, bob by wrote: > On 2017-06-02 16:23 GMT+04:00 LRN wrote: >> On 6/2/2017 2:47 PM, bob by wrote: >>> Can somebody here write a replacement for the standard cout, that will be >>> able to print strings and integers, and internally will jus

Re: [Mingw-w64-public] C++ cout executable size

2017-06-02 Thread Liu Hao
On 2017/6/2 20:21, bob by wrote: 2017-06-02 16:05 GMT+04:00 JonY : On 06/02/2017 11:47 AM, bob by wrote: Wonder why including bloats my exe file so much (extra 900 KiB, with statically linked libraries), even if nothing from there is used. Why cout requires so much code. It includes st

Re: [Mingw-w64-public] C++ cout executable size

2017-06-02 Thread LRN
On 6/2/2017 3:53 PM, bob by wrote: > On 2017-06-02 16:23 GMT+04:00 LRN wrote: >> On 6/2/2017 2:47 PM, bob by wrote: >>> Can somebody here write a replacement for the standard cout, that will be >>> able to print strings and integers, and internally will just redirect to >>> puts and itoa? I'm only

Re: [Mingw-w64-public] C++ cout executable size

2017-06-02 Thread JonY
On 06/02/2017 12:53 PM, bob by wrote: > 2017-06-02 16:23 GMT+04:00 LRN : > >> On 6/2/2017 2:47 PM, bob by wrote: >>> Can somebody here write a replacement for the standard cout, that will be >>> able to print strings and integers, and internally will just redirect to >>> puts and itoa? I'm only st

Re: [Mingw-w64-public] C++ cout executable size

2017-06-02 Thread JonY
On 06/02/2017 12:21 PM, bob by wrote: > 2017-06-02 16:05 GMT+04:00 JonY : > >> On 06/02/2017 11:47 AM, bob by wrote: >>> Wonder why including bloats my exe file so much (extra 900 >> KiB, >>> with statically linked libraries), even if nothing from there is used. >> Why >>> cout requires so much c

Re: [Mingw-w64-public] C++ cout executable size

2017-06-02 Thread bob by
2017-06-02 16:23 GMT+04:00 LRN : > On 6/2/2017 2:47 PM, bob by wrote: > > Can somebody here write a replacement for the standard cout, that will be > > able to print strings and integers, and internally will just redirect to > > puts and itoa? I'm only starting with C++, I'm not sure how to do it.

Re: [Mingw-w64-public] C++ cout executable size

2017-06-02 Thread LRN
On 6/2/2017 2:47 PM, bob by wrote: > Can somebody here write a replacement for the standard cout, that will be > able to print strings and integers, and internally will just redirect to > puts and itoa? I'm only starting with C++, I'm not sure how to do it. I feel compelled to cite my own first ex

Re: [Mingw-w64-public] C++ cout executable size

2017-06-02 Thread bob by
2017-06-02 16:05 GMT+04:00 JonY : > On 06/02/2017 11:47 AM, bob by wrote: > > Wonder why including bloats my exe file so much (extra 900 > KiB, > > with statically linked libraries), even if nothing from there is used. > Why > > cout requires so much code. > > > > It includes static initializer c

Re: [Mingw-w64-public] C++ cout executable size

2017-06-02 Thread JonY
On 06/02/2017 11:47 AM, bob by wrote: > Wonder why including bloats my exe file so much (extra 900 KiB, > with statically linked libraries), even if nothing from there is used. Why > cout requires so much code. > It includes static initializer code to initialize all the std::* members, so you ar

Re: [Mingw-w64-public] C++ cout executable size

2017-06-02 Thread bob by
Wonder why including bloats my exe file so much (extra 900 KiB, with statically linked libraries), even if nothing from there is used. Why cout requires so much code. I downloaded gcc-6.3.0 source code, and found libstdc++-v3\src\c++11 folder. I guess the "cout <<" is somewhere in here, but I'm n

Re: [Mingw-w64-public] Is there a libbacktrace library for mingw-64/gcc

2017-06-02 Thread niXman
Edward Diener писал 2017-05-31 22:57: $ echo $PATH /usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl I have no ideas, sorry... -- Regards, niXman