This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Faster compilation speed: cache behavior
- From: "David S. Miller" <davem at redhat dot com>
- To: zack at codesourcery dot com
- Cc: dpatel at apple dot com, austern at apple dot com, neil at daikokuya dot co dot uk, gcc at gcc dot gnu dot org
- Date: Tue, 20 Aug 2002 16:23:29 -0700 (PDT)
- Subject: Re: Faster compilation speed: cache behavior
- References: <CF56A5CB-B48E-11D6-82FA-00039390D9E0@apple.com><D714635A-B491-11D6-A5B3-00039310EDEA@><20020820233246.GM29858@codesourcery.com>
From: Zack Weinberg <zack@codesourcery.com>
Date: Tue, 20 Aug 2002 16:32:46 -0700
RTX Number Bytes % Total
...
symbol_ref 388 6208 43.425
...
That is an awful lot of data allocation activity, and an awful lot of
garbage created, for having done nothing at all.
Most of these RTL objects can be eliminated, search the list archives
forthe subject "DECL_RTL vs. explicit make_decl_rtl calls". Every
function decl. parsed, even in header files, causes a SYMBOL_REF to
be created and hung off the DECL_RTL of the tree node.