X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:to:subject:references
	:content-type; q=dns; s=default; b=tmKEISXqtqWbgJzFlKfGjgLLTwTX5
	XLoDqOWZk1Hw7dPeOucvVXb2X6E/OhyMl+O2tVxrQPeeF6pN/QpBKncmH2eQR+Ye
	0b458vwpiW/Hanef+bVVgl1GiDFnStFYdu/jiLHRoFwx7YnWIO57Gw8Shp2elJy+
	ZpH+3R9ZSpecEY=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:to:subject:references
	:content-type; s=default; bh=ZMn+s1+NY68/SYYrmcOA6x43790=; b=HOk
	GVvHwKtqQjeId6wJ8GW3UYlkOZTPMDie1Jl595iltLNUotrZp2tXaxbKKkx9hDOh
	4ckYFXFchgUs9xR04sxWCXDv3xyR3HxyybInM0fKHkLWpBWaWaqVXGyL2y+swbm5
	x7qkKcad8G6TCjQDXPJoPy/xGu/U13N9Wu2UBCQw=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=announcement, cygwincom, cygwin.com, H*M:1c69fb81
X-HELO: mail-oi0-f54.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=20161025;        h=message-id:date:from:to:subject:references:user-agent;        bh=KQI1HuDmh8gzZpMsPTx9WHX+wFYfoISzVA/bGznOI5I=;        b=Fq/NLKg/VYeuxXPa+j+Rj9XYkqckiFs8lMGltvLuT1X7UR9e4S/mGQtefBogCzkPtY         Rx1i+UR2Zx4SoUg3YP+0zM7F+Q1J1H2GMYJhec4ilM9AcIr4/yAY+fb9ixdf/mH7KO9e         m+aZPBg/GFGdqTnfjyHNGc/x2fN6wV01+t23YNFQ7HBIfFzrxDI5jGbknqTfVAZWkIvO         2bCTlUuD0xAizcaqmuBMfCCcm5W+ZZFdKJgo7gZIko63Z657rE+HEBGbHa2uiDSnxSdS         OOoB9mYoM3dp2c8zPD8u1RvxAO44W5PC7EFLQ+gpDkjREvAn3KVAMWr/VzGxmrqFBa+M         B1Kw==
Message-ID: <5b7b846f.1c69fb81.fdb19.08eb@mx.google.com>
Date: Mon, 20 Aug 2018 20:18:07 -0700 (PDT)
From: Steven Penny <svnpenn@gmail.com>
To: cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] [Updated] mingw64-{i686,x86_64}-gcc-7.3.0-1 (Test)
References: <announce.788f6953-7b20-67c1-1dca-b65a200e0211@gmail.com>
Content-Type: text/plain; charset=utf8; format=flowed
User-Agent: Tryst/2.8.0 (cup.github.io/tryst)

On Wed, 18 Jul 2018 10:38:22, JonY wrote:
> The mingw-w64 cross compilers have been updated:
>
> * mingw64-i686-gcc-7.3.0-1
> * mingw64-x86_64-gcc-7.3.0-1
>
> It is available under the test version.

http://cygwin.com/ml/cygwin/2018-07/msg00168.html

Using this file:

    $ cat stoi.cpp
    #include <iostream>
    #include <string>
    main() {
      std::string q = "23456";
      std::cout << std::stoi(q) << std::endl;
    }

I have noticed an issue with the Cygwin "x86_64-w64-mingw32-g++" compiler. If I
strip the executable, all is well:

    $ time x86_64-w64-mingw32-g++ -s -static-libstdc++ stoi.cpp; wc -c a.exe
    real    0m0.889s
    845824 a.exe

Same with Msys2:

    # time x86_64-w64-mingw32-g++ -s -static-libstdc++ stoi.cpp; wc -c a.exe
    real    0m0.718s
    835584 a.exe

However if I do not strip the executable, the compile time nearly triples and
the size increases 10 fold:

    $ time x86_64-w64-mingw32-g++ -static-libstdc++ stoi.cpp; wc -c a.exe
    real    0m2.340s
    11695660 a.exe

Compare with Msys2, where the time only increases 17%, and the size only
increases 3 fold:

    # time x86_64-w64-mingw32-g++ -static-libstdc++ stoi.cpp; wc -c a.exe
    real    0m0.842s
    3001138 a.exe


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

