This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Inliner for Java
- From: Mike Stump <mrs at apple dot com>
- To: Jeff Sturm <jsturm at one-point dot com>
- Cc: Andrew Haley <aph at cambridge dot redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 9 Aug 2002 09:22:47 -0700
- Subject: Re: Inliner for Java
On Friday, August 9, 2002, at 07:46 AM, Jeff Sturm wrote:
d) no inlining across translation units
I don't know what is needed for d).
Many years ago I had a cross translation unit inliner (for C and/or
C++) that used something akin to PFE. The easiest way to make this
work is to use PFE. PFE can be thought of as allocating trees/rtl in a
mmaped file. This file persists across compilation units rather
trivially. You can store anything you want in there, say, all the
inline function definitions for your entire program. If you expose the
FUNCTION_DECLs from one unit to another, presto, cross unit inlining.