This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20700] New: x86_64 code bloat on templates
- From: "ms6ep at cs dot virginia dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Mar 2005 04:09:23 -0000
- Subject: [Bug c++/20700] New: x86_64 code bloat on templates
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I've got a small piece of C++ code that makes extensive use of templates. To my
surprize it compiles to en executable of about 20 MBytes on x86_64 architecture.
When I compiled it on an x86 machine the executable is about 6 Kbytes. Is code
bloat of this magnitude normal?
The code I'm trying to compile is basically a cut and paste of this:
http://www.boost.org/libs/mpl/doc/tutorial/representing-dimensions.html
--
Summary: x86_64 code bloat on templates
Product: gcc
Version: 3.4.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ms6ep at cs dot virginia dot edu
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20700