This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: add new optimization pass to the GCC optimizations
- From: Andi Hellmund <mail at andihellmund dot com>
- To: charfi asma <charfiasma at yahoo dot fr>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 11 May 2009 21:04:26 +0200
- Subject: Re: add new optimization pass to the GCC optimizations
- References: <855182.80332.qm@web28505.mail.ukl.yahoo.com>
Hey,
you could also check this site to just add a new optimization pass ...
http://gcc.gnu.org/wiki/WritingANewPass
Andi
> Hello,
>
> Can we *add* our own SSA *optimizations* *passes* *to* *GCC*?
Yes.
> is *there* a plugin or API that can help doing this ? (since *GCC* is open
> source) *to* run this *optimization*, can we easialy *add* it *to* other
> *optimizations* performed by chosing one of *the* known *GCC* flag: O1,
O2, ...
As of *GCC* 4.5 (which isn't yet released - you'd need *to* build from
svn), *there*
is a plugin API. See
http://*gcc*.gnu.org/onlinedocs/*gccint*/Plugins.html#Plugins
<http://gcc.gnu.org/onlinedocs/gccint/Plugins.html#Plugins>
Brad