This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Language-independent functions-as-trees representation


Pop Sébastian <pop@gauvain.u-strasbg.fr> writes:

> On Sun, Jul 21, 2002 at 08:42:43AM +0200, Andreas Jaeger wrote:
>> Jason Merrill <jason@redhat.com> writes:
>> 
>> > In a previous thread, Diego has suggested that inlining would be done on
>> > language-dependent trees.  I think this is a mistake; IMO it should be done
>> > at the SIMPLE level.  Requiring the inliner to know about frontend trees is
>> > wrong.
>> 
>> Inlining on SIMPLE might also allow to inline mixed languages, e.g. C
>> code into Fortran.  
>
> This would require to store SIMPLE trees comming from different front-ends
> then reconstruct a global tree. 
> (a little as the SGI's compiler works for interprocedural analysis, storing 
> WHIRL trees into .o files, then building the whole tree at link/optimize time).

It would only make sense with whole program optimizations for
interprocedural analysis.  Currently GCC does not do anything of this
kind but we should think forward and whole program optimizations is
something that some of us might want to see.


Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]