public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Grigori Fursin" <gfursin@gmail.com>
To: "'Duncan Sands'" <baldrick@free.fr>,
		"'Eric Botcazou'" <ebotcazou@adacore.com>, 	<gfursin@gmail.com>
Cc: <gcc@gcc.gnu.org>, 	"'Steven Bosscher'" <stevenb.gcc@gmail.com>
Subject: RE: dragonegg in FSF gcc?
Date: Sun, 11 Apr 2010 16:02:00 -0000	[thread overview]
Message-ID: <003601cad98f$83546f60$89fd4e20$@com> (raw)
In-Reply-To: <4BC1EC78.4050808@free.fr>

Hello,

Hope my question will not completely divert the topic of this discussion -
just curious what do you mean by better code? Better execution time, code size, 
compilation time?..

If yes, then why not to compare different compilers by just compiling multiple programs
with GCC, LLVM, Open64, ICC, etc, separately to compare those characteristics and then 
find missing optimizations or better combinations of optimizations to achieve the result? 

By the way, using iterative feedback-directed compilation (searching for best combinations 
of optimizations) can considerably improve default optimization heuristic of nearly any 
compiler (look at ACOVEA or cTuning.org results) so it may not be so straightforward
to answer a question which compiler is better when just using default optimization heuristic ...

Cheers,
Grigori

*************************************************************
Grigori Fursin, Exascale Research Center, France
http://unidapt.org/people/gfursin
*************************************************************




-----Original Message-----
From: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] On Behalf Of Duncan Sands
Sent: Sunday, April 11, 2010 5:36 PM
To: Eric Botcazou
Cc: gcc@gcc.gnu.org; Steven Bosscher
Subject: Re: dragonegg in FSF gcc?

Hi Eric,

>> As for "negating the efforts of those working on the middle ends and back
>> ends", would you complain if someone came up with a new register allocator
>> because it negates the efforts of those who work on the old one?  If LLVM
>> is technically superior, then that's a fact and a good thing, not
>> subversion, and hopefully will encourage the gcc devs to either improve gcc
>> or migrate to LLVM.
>
> Well, the last point is very likely precisely what Steven is talking about.
> GCC doesn't have to shoot itself in the foot by encouraging its developers to
> migrate to LLVM.

I hope it was clear from my email that by "gcc" I was talking about the gcc
optimizers and code generators and not the gcc frontends.  If the dragonegg
project shows that feeding the output of the gcc frontends into the LLVM
optimizers and code generators results in better code, then gcc can always
change to using the LLVM optimizers and code generators, resulting in a better
compiler.  I don't see how this is gcc the compiler shooting itself in the foot.

Of course, some gcc devs have invested a lot in the gcc middle and back ends,
and moving to LLVM might be personally costly for them.  Thus they might be
shooting themselves in the foot by helping the LLVM project, but this should
not be confused with gcc the compiler shooting itself in the foot.

All this is predicated on gcc-frontends+LLVM producing better code than the
current gcc-frontends+gcc-middle/backends.  As I mentioned, dragonegg makes
it easier, even trivial, to test this.  So those who think that LLVM is all
hype should be cheering on the dragonegg project, because now they have a
great way to prove that gcc does a better job!

Ciao,

Duncan.

  parent reply	other threads:[~2010-04-11 15:56 UTC|newest]

Thread overview: 104+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-09 16:44 Jack Howarth
2010-04-09 18:16 ` Basile Starynkevitch
2010-04-10 13:37   ` Duncan Sands
2010-04-11 12:54     ` Steven Bosscher
2010-04-11 14:17       ` Duncan Sands
2010-04-11 14:57         ` Eric Botcazou
2010-04-11 15:41           ` Duncan Sands
2010-04-11 15:56             ` Robert Dewar
2010-04-11 16:02             ` Grigori Fursin [this message]
2010-04-11 16:02               ` Robert Dewar
2010-04-11 16:28                 ` Duncan Sands
2010-04-11 16:31                   ` Robert Dewar
2010-04-13 16:58                   ` Paolo Bonzini
2010-04-11 18:15                 ` Andi Kleen
2010-04-11 16:26               ` Duncan Sands
2010-04-11 16:26                 ` Robert Dewar
2010-04-11 16:34                   ` Duncan Sands
2010-04-11 17:47                     ` Robert Dewar
2010-04-11 16:37                 ` Grigori Fursin
2010-04-11 18:50             ` Toon Moene
2010-04-11 21:43             ` Eric Botcazou
2010-04-11 16:32         ` Basile Starynkevitch
2010-04-21 16:52         ` Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?) Vladimir Makarov
2010-04-21 17:00           ` Robert Dewar
2010-04-21 17:09             ` Steven Bosscher
2010-04-21 17:57               ` Paolo Bonzini
2010-04-21 18:28                 ` Robert Dewar
2010-04-21 18:09               ` Robert Dewar
2010-04-22 10:24                 ` Laurent GUERBY
2010-04-21 18:37               ` Basile Starynkevitch
2010-04-21 18:40                 ` Robert Dewar
2010-04-21 17:21             ` Vladimir Makarov
2010-04-21 18:23               ` Robert Dewar
2010-04-21 20:54                 ` Vladimir Makarov
2010-04-22  6:19                   ` Robert Dewar
2010-04-22 18:44                     ` Vladimir Makarov
2010-04-21 20:58             ` Toon Moene
2010-04-22  6:29               ` Robert Dewar
2010-04-21 17:05           ` Steven Bosscher
2010-04-21 17:10             ` Vladimir Makarov
2010-04-21 17:55               ` Manuel López-Ibáñez
2010-04-21 18:32                 ` Robert Dewar
2010-04-21 19:03                   ` Eric Botcazou
2010-04-21 17:42           ` Chris Lattner
2010-04-21 18:19             ` Vladimir Makarov
2010-04-21 18:25               ` Chris Lattner
2010-04-21 18:41                 ` Vladimir Makarov
2010-04-21 19:35               ` Duncan Sands
2010-04-21 18:01           ` Duncan Sands
2010-04-21 18:19             ` Vladimir Makarov
2010-04-11 14:30       ` dragonegg in FSF gcc? Jack Howarth
2010-04-11 15:36         ` Manuel López-Ibáñez
2010-04-11 16:33           ` Dave Korn
2010-04-11 19:06             ` Laurent GUERBY
2010-04-11 22:19             ` Manuel López-Ibáñez
2010-04-11 22:26               ` Dave Korn
2010-04-12  7:34                 ` Manuel López-Ibáñez
2010-04-12 13:38                   ` Jack Howarth
2010-04-12 13:42                     ` Robert Dewar
2010-04-12 13:52                     ` Richard Guenther
2010-04-12 14:00                       ` Jack Howarth
2010-04-12 15:59                         ` Steven Bosscher
2010-04-12 16:03                           ` Jack Howarth
2010-04-12 16:27                             ` Steven Bosscher
2010-04-12 18:03                               ` Dave Korn
2010-04-12 14:00                   ` Dave Korn
2010-04-12 14:47                     ` Manuel López-Ibáñez
2010-04-12 17:58                       ` Weddington, Eric
2010-04-12 21:13                         ` Toon Moene
2010-04-12 22:51                         ` Ian Lance Taylor
2010-04-23 13:50                           ` Poor internal documentation (was: dragonegg in FSF gcc?) Philipp Thomas
2010-04-23 14:26                             ` Manuel López-Ibáñez
2010-04-24 19:07                               ` Documentation legal issues (Was: Re: Poor internal documentation) Joern Rennecke
2010-06-05 10:10                               ` Poor internal documentation (was: dragonegg in FSF gcc?) Philipp Thomas
2010-06-05 13:17                                 ` Jonathan Wakely
2010-04-13 17:15                     ` dragonegg in FSF gcc? Paolo Bonzini
2010-04-13 17:18                       ` Jack Howarth
2010-04-13 17:22                         ` Paolo Bonzini
2010-04-13 19:19                           ` Jack Howarth
2010-04-13 19:43                             ` Paolo Bonzini
2010-04-13 20:29                             ` Diego Novillo
2010-04-13 21:04                               ` Steven Bosscher
2010-04-13 21:16                                 ` Diego Novillo
2010-04-14 14:06                                   ` Grigori Fursin
2010-04-13 18:05                         ` Steven Bosscher
2010-04-13 19:26                           ` Andrew Pinski
2010-04-13 19:28                             ` Jack Howarth
2010-04-13 17:05             ` Paolo Bonzini
2010-04-13 21:06               ` Testing GCC on Cygwin made substantially easier [was Re: dragonegg in FSF gcc?] Dave Korn
2010-05-26  9:37                 ` Laurynas Biveinis
2010-04-13 23:11         ` dragonegg in FSF gcc? Steven Bosscher
2010-04-13 23:43           ` Jack Howarth
2010-04-14  6:48           ` Duncan Sands
2010-04-14 13:54             ` Jack Howarth
2010-04-14 13:59               ` Paolo Bonzini
2010-04-11 14:33       ` Jack Howarth
2010-04-11 15:06         ` David Edelsohn
2010-04-11 15:24           ` Jack Howarth
2010-04-11 16:17           ` Duncan Sands
2010-04-11 16:20             ` Jack Howarth
2010-04-11 22:48               ` Jonathan Wakely
2010-04-12 13:35                 ` Duncan Sands
2010-04-12 15:03                 ` Alfred M. Szmidt
2010-04-12 15:34                   ` Jack Howarth

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='003601cad98f$83546f60$89fd4e20$@com' \
    --to=gfursin@gmail.com \
    --cc=baldrick@free.fr \
    --cc=ebotcazou@adacore.com \
    --cc=gcc@gcc.gnu.org \
    --cc=stevenb.gcc@gmail.com \
    /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).