From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14694 invoked by alias); 24 Feb 2007 05:56:26 -0000 Received: (qmail 14672 invoked by uid 48); 24 Feb 2007 05:56:16 -0000 Date: Sat, 24 Feb 2007 05:56:00 -0000 Subject: [Bug c++/30945] New: iostream includes excessive headers - results in large files X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rosenwad at bxscience dot edu" 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: 2007-02/txt/msg02741.txt.bz2 On Bjarne Stroustrup's site, it's says in the FAQs: ________________________________ Why is the code generated for the "Hello world" program ten times larger for C++ than for C? It isn't on my machine, and it shouldn't be on yours. I have even seen the C++ version of the "hello world" program smaller than the C version. When I recently (2004) tested using gcc -o2 on a Unix, the two versions (iostreams and stdio) yielded identical sizes. There is no language reason why the one version should be larger than the other. It is all an issue on how the implementor organized the libraries. If one version is significantly larger than the other, report the problem to the implementor of the larger. __________________________________ Perhaps unnecessary files are being included in . These files should NOT be over 400 KB. In fact, a standard Win32 header compiles to a smaller file. -- Summary: iostream includes excessive headers - results in large files Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rosenwad at bxscience dot edu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30945