From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?R=FCdiger?= Sonderfeld Newsgroups: gmane.emacs.devel Subject: Re: clang vs free software Date: Tue, 21 Jan 2014 17:34:10 +0100 Message-ID: <3251502.USOysJnPn3@descartes> References: <87fvqtg02v.fsf@flea.lifelogs.com> <3496352.tEhiuvcQfN@descartes> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1390322076 10059 80.91.229.3 (21 Jan 2014 16:34:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Jan 2014 16:34:36 +0000 (UTC) Cc: John Yates , Stefan Monnier , Richard Stallman , David Engster , emacs-devel@gnu.org To: joakim@verona.se Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 21 17:34:44 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W5eHi-0005ri-Jq for ged-emacs-devel@m.gmane.org; Tue, 21 Jan 2014 17:34:42 +0100 Original-Received: from localhost ([::1]:59346 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5eHi-0007KA-8Y for ged-emacs-devel@m.gmane.org; Tue, 21 Jan 2014 11:34:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5eHY-0007Jp-Vd for emacs-devel@gnu.org; Tue, 21 Jan 2014 11:34:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5eHR-00038O-Hk for emacs-devel@gnu.org; Tue, 21 Jan 2014 11:34:32 -0500 Original-Received: from ptmx.org ([178.63.28.110]:37589) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5eHR-00038H-B5; Tue, 21 Jan 2014 11:34:25 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by ptmx.org (Postfix) with ESMTP id 6717A25021; Tue, 21 Jan 2014 17:34:24 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at ptmx.org Original-Received: from ptmx.org ([127.0.0.1]) by localhost (ptmx.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Raj85bSvHGch; Tue, 21 Jan 2014 17:34:23 +0100 (CET) Original-Received: from descartes.localnet (chello080108246092.7.14.vie.surfer.at [80.108.246.92]) by ptmx.org (Postfix) with ESMTPSA id E944E25020; Tue, 21 Jan 2014 17:34:21 +0100 (CET) User-Agent: KMail/4.11.3 (Linux/3.11.0-14-generic; KDE/4.11.3; x86_64; ; ) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 178.63.28.110 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:168838 Archived-At: On Tuesday 21 January 2014 17:25:59 joakim@verona.se wrote: > > GCC provides a plugin interface now which can be used to extract > > information about the source. I started writing a plugin and Emacs= > > interface based on that. It can show the callgraph, jump to defini= tion, > > and show some information about symbols. You simply add it to your= > > normal compiler call. But I didn't get very far and it requires a p= atched > > version of the gcc-python plugin. > >=20 > > I hope I'll find enough time to continue working on it. Maybe Clan= g > > provides better integration. But without an FFI it would have to b= e > > linked into Emacs. And GCC is the main compiler I use anyway. >=20 > Interesting. Do you know if the interfaces you use are also provided = via > gnome object introspection? Then I would love to try it out using the= > Emacs Xwidget branch, which provides an attempt at a GIR bridge for e= macs. I'm not loading any library in Emacs itself. I have written plugins fo= r GCC. =20 They are loaded during the compile process (add -fplugin=3D./gccetags.s= o to the=20 CXXFLAGS) and write data to a file. For gcc-etags to a file in etag fo= rmat=20 and for the other experiment a sexp. I haven't really looked at libclang. Which could be loaded through an = FFI. I=20 doubt that they are using Glib though or what would be needed for gnome= object=20 introspection. Regards, R=C3=BCdiger