hello
I haven't found anything in my digging, so I'd like to ask if anyone knows
of any mechanism in GCC for conducting peephole optimization on generated
code.
GCC has a plugin mechanism. write your plugin doing so.
I can imagine doing this as a pass over the generated code from
within the backend, or as a separate process between cc1 and as. I'm
working with a derivative of 4.3.
Better share optimization code in the middle end.
You really should upgrade your GCC. The current version is 15. Your GCC
version is a decade old, and you won't find a lot of experts knowing
that old version (4.3).
NB. My open source project is an inference engine, see
https://github.com/RefPerSys/RefPerSys/
--
Basile STARYNKEVITCH <bas...@starynkevitch.net>
8 rue de la Faïencerie
92340 Bourg-la-Reine mobile: +33 6 8501 2359
France http://starynkevitch.net/Basile/