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

2017-06-01 Thread David Grayson
On Thu, Jun 1, 2017 at 11:49 AM, bob by wrote: > I linked all libraries statically, before that it depended on > libgcc_s_dw2-1.dll and libwinpthread-1.dll, and probably something > else too. It was around 500 KiB originally, now it is almost 1000 KiB. if your program depends on those DLLs, it me

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

2017-06-01 Thread bob by
> How huge is "weirdly huge"? Does your executable depend on any MinGWDLLs, like libstdc++-6.dll? I linked all libraries statically, before that it depended on libgcc_s_dw2-1.dll and libwinpthread-1.dll, and probably something else too. It was around 500 KiB originally, now it is almost 1000 KiB.

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

2017-06-01 Thread David Grayson
Also, did you remember to run the binutils "strip" utility on your executable before deciding it was huge? --David On Thu, Jun 1, 2017 at 10:54 AM, David Grayson wrote: > How huge is "weirdly huge"? Does your executable depend on any MinGW > DLLs, like libstdc++-6.dll? > > The code in the "std"

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

2017-06-01 Thread David Grayson
How huge is "weirdly huge"? Does your executable depend on any MinGW DLLs, like libstdc++-6.dll? The code in the "std" namespace is generally provided by libstdc++v3, which is a component of GCC and can be found in the GCC source: ftp://ftp.gnu.org/gnu/gcc/ You haven't said what version of GCC y

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

2017-06-01 Thread bob by
Hello. Wrote my hello world in C++, but executable size is weirdly huge. Can I get a lightweight replacement for the cout << operator? People recommend to just use printf instead, but maybe there is a way. By the way, where can I get source code of std? I'd like to see how it works in debugger. -