From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21050 invoked by alias); 3 Aug 2009 16:16:09 -0000 Received: (qmail 21035 invoked by uid 22791); 3 Aug 2009 16:16:08 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 03 Aug 2009 16:16:02 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n73GG1fV014402; Mon, 3 Aug 2009 12:16:01 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n73GG0S8001565; Mon, 3 Aug 2009 12:16:00 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n73GFxMf023257; Mon, 3 Aug 2009 12:15:59 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 0695C50822E; Mon, 3 Aug 2009 10:15:59 -0600 (MDT) To: Paolo Bonzini Cc: Basile STARYNKEVITCH , GCC Mailing List Subject: Re: MELT tutorial on the wiki References: <4A707003.8060103@starynkevitch.net> <4A740061.2050104@gnu.org> From: Tom Tromey Reply-To: Tom Tromey Date: Mon, 03 Aug 2009 16:16:00 -0000 In-Reply-To: <4A740061.2050104@gnu.org> (Paolo Bonzini's message of "Sat\, 01 Aug 2009 10\:44\:17 +0200") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-08/txt/msg00035.txt.bz2 >>>>> "Paolo" == Paolo Bonzini writes: Paolo> MELT looks extremely cool! You may want to use this too, however: Paolo> http://lwn.net/Articles/315686/ Yes, I'm also looking at Coccinelle and TreeHydra. As this is strictly a spare-time project, I am trying to find the approach that requires the least effort on my part. Coccinelle has the advantage that it is already packaged on Fedora. However, the documentation is not excellent (AFAICT there is a grammar and a bunch of examples, but nothing else) and that makes it difficult to use. Also it does not seem to handle GDB's heavily macroized code very well (maybe there's a way ... but again, the docs). TreeHydra looks very promising but it seems complicated to build. It wasn't clear which patches ought to be applied. I'm going to get it built one of these weeks... I was hoping that because all the code was on a branch, MELT would be the simplest to get working. Now I've spent more time on it than on the other two combined ;) Tom