From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3139 invoked by alias); 21 Aug 2018 03:18:12 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 3123 invoked by uid 89); 21 Aug 2018 03:18:11 -0000 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 Received: from mail-oi0-f54.google.com (HELO mail-oi0-f54.google.com) (209.85.218.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 21 Aug 2018 03:18:09 +0000 Received: by mail-oi0-f54.google.com with SMTP id w126-v6so29637602oie.7 for ; Mon, 20 Aug 2018 20:18:09 -0700 (PDT) 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== Return-Path: Received: from Cl8 ([2605:6000:9fc0:56:cc81:ec52:ab35:2fe4]) by smtp.gmail.com with ESMTPSA id i204-v6sm36136805oia.41.2018.08.20.20.18.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Aug 2018 20:18:07 -0700 (PDT) Message-ID: <5b7b846f.1c69fb81.fdb19.08eb@mx.google.com> Date: Tue, 21 Aug 2018 15:16:00 -0000 From: Steven Penny To: cygwin@cygwin.com Subject: Re: [ANNOUNCEMENT] [Updated] mingw64-{i686,x86_64}-gcc-7.3.0-1 (Test) References: Content-Type: text/plain; charset=utf8; format=flowed User-Agent: Tryst/2.8.0 (cup.github.io/tryst) X-SW-Source: 2018-08/txt/msg00279.txt.bz2 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 #include 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