public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Taras Glek <taras.judge@shaw.ca>
To: tromey@redhat.com
Cc: Alexandre Oliva <aoliva@redhat.com>, gcc@gcc.gnu.org
Subject: Re: Progress on GCC plugins ?
Date: Mon, 26 Nov 2007 06:24:00 -0000	[thread overview]
Message-ID: <4748D0D9.6000908@shaw.ca> (raw)
In-Reply-To: <m3oddinv1b.fsf@fleche.redhat.com>

Tom Tromey wrote:
>>>>>> "Alexandre" == Alexandre Oliva <aoliva@redhat.com> writes:
>>>>>>             
>
> Alexandre> And then, once the underlying problem is addressed and we
> Alexandre> have an API that is usable by regular users, maybe we will
> Alexandre> find out that we don't need plugins, after all.
>
> Plugins are about deployment, not development.
>
> Plugins make it possible to redistribute useful things which are not
> in GCC.  They don't -- and as you rightly point out, can't -- make it
> simpler to actually develop these things.
>   
> The canonical example, which has been covered many times, is a pass
> that does extra checking for a large program (e.g., Mozilla).
>   
There are a lot of checks that could be implemented as plugins to 
benefit Mozilla and other projects. For future Mozilla development 
certain features that we are looking at are not feasible in C++ until 
the compiler can help with enforcing correct API usage. It would be 
extremely awesome to be able to utilize GCC internals for static 
analysis and source refactoring. Currently that isn't realistic as these 
features do not belong in the GCC mainline and distributing a gcc fork 
would be very burdensome.
Plugins would also encourage projects such as Mozilla to contribute to 
gcc to implement various backend improvements to make various plugins 
possible. I think GCC could gain some "accidental" contributors this way.
i believe that this would also have an additional effect of making GCC 
the strongly suggested compiler for development as it would be able to 
provide development benefits not (yet?) available in most compilers.
>
> LD_PRELOAD would work just as well as having gcc directly support
> plugins, provided that certain internal things are never made
> file-local.  Someone could write a helper library to make it
> relatively simple to hook in.  But... I looked at this recently, and
> since gcc is not linked with -rdynamic, it is a non-starter.
>   
Tom, I don't know much about linkers and LD_PRELOAD. Would making 
LD_PRELOAD work be easier than making an unstable plugin API?

Taras

  reply	other threads:[~2007-11-25 23:57 UTC|newest]

Thread overview: 108+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-07  8:37 Emmanuel Fleury
2007-11-07 16:47 ` Joe Buck
2007-11-07 17:11   ` Basile STARYNKEVITCH
2007-11-07 17:20   ` Tom Tromey
2007-11-07 17:34     ` Robert Dewar
2007-11-07 17:47       ` Chris Lattner
2007-11-08 13:02       ` Florian Weimer
2007-11-08 14:01         ` Robert Dewar
2007-11-07 17:49   ` Dave Korn
2007-11-07 18:45     ` David Edelsohn
2007-11-07 19:11       ` Robert Dewar
2007-11-07 21:55         ` Brendon Costa
2007-11-07 22:32           ` Robert Dewar
2007-11-07 22:43             ` Brendon Costa
2007-11-07 22:57               ` Robert Dewar
2007-11-07 23:43                 ` David Edelsohn
2007-11-08  0:00                   ` Brendon Costa
2007-11-07 23:44                 ` Brendon Costa
2007-11-25  0:02                   ` Alexandre Oliva
2007-11-25 17:15                     ` Richard Kenner
2007-11-08 12:57       ` Dave Korn
2007-11-08  0:10   ` Brendon Costa
2007-11-08  7:21   ` Ian Lance Taylor
2007-11-08 10:23     ` Emmanuel Fleury
2007-11-08 20:51     ` Mark Mitchell
2007-11-09 18:12       ` Gerald.Williams
2007-11-15 21:43   ` Diego Novillo
2007-11-15 21:46     ` Joe Buck
2007-11-15 21:53     ` Richard Kenner
2007-11-15 22:04       ` Ian Lance Taylor
2007-11-15 22:46         ` Richard Kenner
2007-11-15 22:49           ` Diego Novillo
2007-11-15 23:24             ` Richard Kenner
2007-11-15 23:37               ` Diego Novillo
2007-11-16  0:24                 ` Richard Kenner
2007-11-16  1:24                   ` Diego Novillo
2007-11-24 23:31                     ` Alexandre Oliva
2007-11-24 23:33                       ` Diego Novillo
2007-11-25  0:11                         ` Alexandre Oliva
2007-11-16  1:39               ` Ian Lance Taylor
2007-11-16 15:49             ` Alexander Lamaison
2007-11-16 16:08               ` Martin Jambor
2007-11-16 16:12                 ` Alexander Lamaison
2007-11-15 22:54           ` Benjamin Smedberg
2007-11-15 23:50           ` Ian Lance Taylor
2007-11-15 22:53         ` Andrew Haley
2007-11-15 22:55           ` Ian Lance Taylor
2007-11-16 13:33             ` Andrew Haley
2007-11-16 16:18               ` Ian Lance Taylor
2007-11-16 16:21                 ` Andrew Haley
2007-11-16 16:53                   ` Basile STARYNKEVITCH
2007-11-16 16:56                   ` Ian Lance Taylor
2007-11-16 16:58                     ` Diego Novillo
2007-11-16 17:08                     ` Andrew Haley
2007-11-16 17:10                       ` Diego Novillo
2007-11-16 18:17                         ` Benjamin Smedberg
2007-11-23  0:25                           ` Frank Ch. Eigler
2007-11-16 17:15                       ` Basile STARYNKEVITCH
2007-11-24 23:22                         ` Alexandre Oliva
2007-11-25  0:10                           ` Chris Lattner
2007-11-16 17:16                       ` David Edelsohn
2007-11-16 17:25                         ` Dep, Khushil (GE Money)
2007-11-16 17:32                           ` Tom Tromey
2007-11-17 14:15                           ` Gabriel Dos Reis
2007-11-24 23:22                             ` Alexandre Oliva
2007-11-24 23:29                               ` Richard Kenner
2007-11-25 20:43                               ` Tom Tromey
2007-11-26  6:24                                 ` Taras Glek [this message]
2007-11-26 19:49                                   ` Tom Tromey
2007-11-26 21:31                                     ` Basile STARYNKEVITCH
2007-11-27  0:14                                       ` Tom Tromey
2007-11-27 20:51                                         ` Alexandre Oliva
2007-11-28  7:53                                           ` Ian Lance Taylor
2007-11-16 17:18                     ` Richard Kenner
2007-11-16 17:27                       ` Joe Buck
2007-11-16 17:31                       ` Basile STARYNKEVITCH
2007-11-16 17:38                         ` Joe Buck
2007-11-16 19:21                           ` Gerald.Williams
2007-11-16 19:58                             ` Joe Buck
2007-11-16 21:43                               ` Gerald.Williams
2007-11-16 18:54                       ` Diego Novillo
2007-11-16 19:13                         ` Martin Jambor
2007-11-18 22:12                         ` Robert Dewar
2007-11-19  4:16                           ` Gabriel Dos Reis
2007-11-19  4:23                             ` Richard Kenner
2007-11-19  9:11                               ` Robert Dewar
2007-11-19  9:49                                 ` Richard Kenner
2007-11-19 10:21                                   ` Robert Dewar
2007-11-19 12:14                                 ` Gabriel Dos Reis
2007-11-19 12:28                                 ` Gabriel Dos Reis
2007-11-19 13:18                                   ` Robert Dewar
2007-11-19  8:26                             ` Robert Dewar
2007-11-19  8:37                             ` Robert Dewar
2007-11-16 16:24                 ` Basile STARYNKEVITCH
2007-11-16 17:03                   ` Ian Lance Taylor
2007-11-16 19:09                 ` Martin Michlmayr
2007-11-16 20:27                   ` Ian Lance Taylor
2007-11-16  0:01         ` Emmanuel Fleury
2007-11-16 17:27         ` Bernd Schmidt
2007-11-16 17:35           ` Richard Kenner
2007-11-16 18:41             ` Dave Korn
2007-11-16 17:46           ` Basile STARYNKEVITCH
2007-11-16 17:52           ` Joe Buck
2007-11-16 18:29           ` Diego Novillo
2007-11-17 11:39           ` Tom Tromey
2007-11-19  1:08             ` Brendon Costa
2007-11-15 22:47       ` Diego Novillo
2007-11-15 23:05         ` Richard Kenner

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=4748D0D9.6000908@shaw.ca \
    --to=taras.judge@shaw.ca \
    --cc=aoliva@redhat.com \
    --cc=gcc@gcc.gnu.org \
    --cc=tromey@redhat.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).