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: help on - adding a new pass to gcc


ddmetro wrote:
Hi All,
         We are adding a new pass for - structural hazard optimization - in
gcc.
         We have added a rtl_opt_pass variable(pass_sched3) declaration in
tree-pass.h and defined the same in a new file - sched-by-category.c

In addition of all the other good hints, you might perhaps try to make your pass a plugin of GCC; your use is a good case for a plugin.


Plugins are available in the latest GCC trunk (future 4.5) and should be enabled at configure (& also gcc use) time.

See http://gcc.gnu.org/onlinedocs/gccint/Plugins.html

Regards.
--
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***


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