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 <[email protected]> wrote:
> 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 you
> are using or what distribution of mingw-w64, so it's hard to point you
> to the exact source.
>
> I'd recommend using printf, like those other people you talked to.
> The code for that is provided by Microsoft in msvcrt.dll so it won't
> be part of your executable.
>
> --David
>
> On Thu, Jun 1, 2017 at 9:41 AM, bob by <[email protected]> wrote:
>> 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.
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Mingw-w64-public mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to