From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11928 invoked by alias); 24 Sep 2010 04:19:54 -0000 Received: (qmail 11914 invoked by uid 22791); 24 Sep 2010 04:19:52 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 24 Sep 2010 04:19:51 +0000 From: "cestrauss at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug 43601] (c++) Enormous increase in DLL object files size in 4.5 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cestrauss at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Fri, 24 Sep 2010 04:33:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-09/txt/msg02662.txt.bz2 Message-ID: <20100924043300.HO79ULqOUlAt6LOP1dNTiIOno6mvm80jJawIjTcrM3c@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43601 --- Comment #24 from Cesar Strauss 2010-09-24 04:19:19 UTC --- The wxWidgets build enables precompiled headers on MSVC by default, while the GCC build does not use them. As it turns out, this setting affects the object size on MSVC. When I disabled precompiled headers on MSVC, the object sizes increased, although the final DLL size did not change much. Both cases were built with -O2 and without debug information. Object size in bytes for wxWidgets file src/common/any.cpp: MSVC, precompiled headers enabled: 314515 MSVC, precompiled headers disabled: 2889844 GCC, precompiled headers disabled: 1080971 MSVC version: 2008 Express GCC version: 4.5.0 At the very least, this indicates one should disable precompiled header use when comparing the output of both compilers, as Dave suggested on comment #23. -- Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.