public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/30945] New: iostream includes excessive headers - results in large files
@ 2007-02-24 5:56 rosenwad at bxscience dot edu
2007-02-24 9:00 ` [Bug c++/30945] " pinskia at gcc dot gnu dot org
2007-02-24 10:15 ` [Bug libstdc++/30945] " pcarlini at suse dot de
0 siblings, 2 replies; 3+ messages in thread
From: rosenwad at bxscience dot edu @ 2007-02-24 5:56 UTC (permalink / raw)
To: gcc-bugs
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 <iostream>. 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/30945] iostream includes excessive headers - results in large files
2007-02-24 5:56 [Bug c++/30945] New: iostream includes excessive headers - results in large files rosenwad at bxscience dot edu
@ 2007-02-24 9:00 ` pinskia at gcc dot gnu dot org
2007-02-24 10:15 ` [Bug libstdc++/30945] " pcarlini at suse dot de
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-02-24 9:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-02-24 09:00 -------
Really this is nothing to do with header files really.
I think the FAQ is wrong with respect to the C++98 standard as he forgets there
are locale supported added which brings in a lot.
Also including iostream, forces the initialization of the C++ standard streams.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30945
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libstdc++/30945] iostream includes excessive headers - results in large files
2007-02-24 5:56 [Bug c++/30945] New: iostream includes excessive headers - results in large files rosenwad at bxscience dot edu
2007-02-24 9:00 ` [Bug c++/30945] " pinskia at gcc dot gnu dot org
@ 2007-02-24 10:15 ` pcarlini at suse dot de
1 sibling, 0 replies; 3+ messages in thread
From: pcarlini at suse dot de @ 2007-02-24 10:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pcarlini at suse dot de 2007-02-24 10:15 -------
Let's consider this simply a duplicate of 28080. I'm improving the situation a
bit, but don't expect miracles ;)
*** This bug has been marked as a duplicate of 28080 ***
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Component|c++ |libstdc++
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30945
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-02-24 10:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-24 5:56 [Bug c++/30945] New: iostream includes excessive headers - results in large files rosenwad at bxscience dot edu
2007-02-24 9:00 ` [Bug c++/30945] " pinskia at gcc dot gnu dot org
2007-02-24 10:15 ` [Bug libstdc++/30945] " pcarlini at suse dot de
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).