Jae Hyuk Kwak wrote:
I haven't heard about "MELT" before and still don't know what exactly it is. Is it able to deal with this kind of problem?
MELT is a GCC branch and a GCC plugin. It provides a Lispy domain specific language to code GCC extensions in. More details on the GCC wiki, in particular http://gcc.gnu.org/wiki/MiddleEndLispTranslator & http://gcc.gnu.org/wiki/MELT%20tutorial
I believe that MELT would be a good tool for Jae to experiment his ideas on the switch statements. He probably needs to implement a new GIMPLE pass which tranform a GIMPLE representation into another, and MELT is well suited for that. Feel free to ask more.
Cheers -- 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} ***