This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Inlining heuristics for C++
- To: Fergus Henderson <fjh at cs dot mu dot oz dot au>, Daniel Berlin <dan at cgsoftware dot com>
- Subject: Re: Inlining heuristics for C++
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Mon, 09 Jul 2001 23:10:32 -0700
- cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
> For this to work, you need to do parse and analyze the whole translation
> unit before emitting code, to get information about call counts, and
> to enable elimination of dead functions.
Doing this in the C/C++ front-ends would be approximately trivial, by
the way. But, it would exacerbate our memory usage problems even more;
until we get them under control, I think we have to stick with just
doing a function at a time. Some compilers write out the bodies of
function to disk and read them back; that makes it easier to keep the
entire translation unit in memory without having a giant memory
image.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com