public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Mark Mitchell <mark@codesourcery.com>
To: Andrew Haley <aph@cambridge.redhat.com>,
	Fergus Henderson <fjh@cs.mu.OZ.AU>
Cc: gcc@gcc.gnu.org, java@gcc.gnu.org
Subject: Re: RFC: Java inliner
Date: Tue, 11 Jun 2002 22:36:00 -0000	[thread overview]
Message-ID: <3460000.1023847519@localhost> (raw)
In-Reply-To: <15622.7006.527089.49464@cuddles.cambridge.redhat.com>



--On Tuesday, June 11, 2002 04:46:38 PM +0100 Andrew Haley 
<aph@cambridge.redhat.com> wrote:

> Fergus Henderson writes:
>  > On 11-Jun-2002, Andrew Haley <aph@cambridge.redhat.com> wrote:
>  > > I intend to work on a Java specific tree inliner.
>  > >
>  > > Comments?
>  >
>  > I doubt we'll get a real language-independent AST inliner soon
>  > if everyone who could benefit from it decides that it will be easier
>  > for them to build their own language-specific tree inliner instead ;-)
>
> I take your point!
>
> However, at the moment Java doesn't have an inliner of any kind, so...

The right thing to do is clear: convert the Java front end to use trees
that are more like the C/C++ trees.  (C++ is C plus some C++-specific
extensions; I expect you want C plus some Java-specific extensions.)
Then, use the existing inliner.

Anything else leads to greater incompatibility between the front ends,
and, as such, constitutes a step in distinctly the wrong direction.

This really should not be hard; the Java source language looks very
much like the C/C++ source language.  The control-flow constructs are
very similar.

I know that some of the Java developers think that the Java front end's
representation is superior.  That's a fine opinion to have, and maybe
switching the C/C++ front end to the Java representation is OK too -- but
that's a lot more work.  The Java representation certainly isn't
sufficiently more superior to justify that.

-- 
Mark Mitchell                mark@codesourcery.com
CodeSourcery, LLC            http://www.codesourcery.com

  parent reply	other threads:[~2002-06-12  5:31 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-11  7:00 Andrew Haley
2002-06-11  7:25 ` Daniel Berlin
2002-06-11  7:26   ` Andrew Haley
2002-06-11  7:56 ` Fergus Henderson
2002-06-11  9:18   ` Andrew Haley
2002-06-11  9:49     ` Joe Buck
2002-06-11 10:59       ` Andrew Haley
2002-06-11 11:29         ` Diego Novillo
2002-06-11 22:36     ` Mark Mitchell [this message]
2002-06-12  2:24       ` Per Bothner
2002-06-12  4:47         ` Andrew Haley
2002-06-12  6:38         ` Mark Mitchell
2002-06-12  8:45           ` Andrew Haley
2002-06-12  9:13             ` Daniel Berlin
2002-06-12  9:28               ` Daniel Berlin
2002-07-01 11:21           ` Andrew Haley
2002-07-01 11:29             ` Andrew Haley
2002-07-01 11:56             ` RFC: " Daniel Berlin
2002-07-01 11:58               ` Andrew Haley
2002-07-10  5:16                 ` Alexandre Oliva
2002-07-10  7:08                   ` Andrew Haley
2002-07-10  7:10                     ` Alexandre Oliva
2002-07-10  7:32                       ` Andrew Haley
2002-07-10 13:41                         ` Alexandre Oliva
2002-07-30  9:43                           ` Andrew Haley
2002-08-12 10:37                             ` Tom Tromey
2002-08-12 10:42                               ` Andrew Haley
2002-07-10  9:00                   ` Tom Tromey
2002-06-11  8:39 ` profiling shared libraries Taha Mannan Jiruwala

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3460000.1023847519@localhost \
    --to=mark@codesourcery.com \
    --cc=aph@cambridge.redhat.com \
    --cc=fjh@cs.mu.OZ.AU \
    --cc=gcc@gcc.gnu.org \
    --cc=java@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).