From owner-freebsd-standards@FreeBSD.ORG Tue Jan 15 08:42:26 2008 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 463C516A420 for ; Tue, 15 Jan 2008 08:42:26 +0000 (UTC) (envelope-from mail@sysfault.org) Received: from smtprelay08.ispgateway.de (smtprelay08.ispgateway.de [80.67.29.8]) by mx1.freebsd.org (Postfix) with ESMTP id 8BBB513C459 for ; Tue, 15 Jan 2008 08:42:25 +0000 (UTC) (envelope-from mail@sysfault.org) Received: (qmail 25255 invoked from network); 15 Jan 2008 08:42:23 -0000 Received: from unknown (HELO medusa.sysfault.org) (936934@[89.182.72.173]) (envelope-sender ) by smtprelay08.ispgateway.de (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 15 Jan 2008 08:42:23 -0000 Received: from localhost ([127.0.0.1] helo=medusa.sysfault.org) by medusa.sysfault.org with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1JEhNJ-00027Q-47 for freebsd-standards@freebsd.org; Tue, 15 Jan 2008 09:42:27 +0100 Received: (from marcus@localhost) by medusa.sysfault.org (8.14.2/8.14.2/Submit) id m0F8gM46007953 for freebsd-standards@freebsd.org; Tue, 15 Jan 2008 09:42:22 +0100 (CET) (envelope-from marcus) Date: Tue, 15 Jan 2008 09:42:20 +0100 From: Marcus von Appen To: freebsd-standards@freebsd.org Message-ID: <20080115084220.GA993@medusa.sysfault.org> Mail-Followup-To: freebsd-standards@freebsd.org References: <20080110152153.GC994@medusa.sysfault.org> <20080115054658.GA67116@VARK.MIT.EDU> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BOKacYhQ+x31HxR3" Content-Disposition: inline In-Reply-To: <20080115054658.GA67116@VARK.MIT.EDU> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Score: -4.4 (----) Subject: Re: cflow now supports a basic GNU as syntax now X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marcus von Appen List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2008 08:42:26 -0000 --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On, Tue Jan 15, 2008, David Schultz wrote: > On Thu, Jan 10, 2008, Marcus von Appen wrote: > > Another year, another status report, > >=20 > > the BSD cflow implementation can handle a very limited GNU as(1) subset > > now. You can get the most recent version as always from > > http://sysfault.org/freebsd > >=20 > > There's also a bzr repository available which can be used using > > bzr branch http://sysfault.org/freebsd/cflow > >=20 > > I hope to have basic yacc and lex support available within the next few > > months, so an addition to the base system can be discussed. >=20 > Cool, this seems useful. Have you considered an implementation > strategy more along the lines of egypt (in ports/devel/egypt)? > Egypt has two important advantages. First, it lets gcc interpret > the source code instead of using an ad hoc C lexer. Second, it > generates output for dot (ports/graphics/graphviz), which is > arguably the most popular free tool for generating graph diagrams > in Unix. At least the first of these properties is highly desirable > because it means that the tool can interpret any program that cc(1) > can interpret, instead of some highly constrained subset of them. While it's easy to parse the function declarations out of the dumps, the information loss for variables is pretty high and makes it nearly impossible to support the -i x switch as required by the standard. That's why I stopped thinking about an implementation that uses=20 gcc processed output. Additionally broken C code (read: code that cannot be compiled with $compiler) will still be able to be processed, thus providing the user with some useful information instead of forcing him to fix up anything first. graphviz output however is a feature that definitely should go into it. Regards Marcus --BOKacYhQ+x31HxR3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkeMcewACgkQo/JpszXavhyJsQCfdl/dSDXv3XV/qFmG02/pKuis RQ8An1xU9q+mMqjwZAjsZxaIUd2AGDQD =0g4V -----END PGP SIGNATURE----- --BOKacYhQ+x31HxR3--