From owner-freebsd-standards@FreeBSD.ORG Thu Aug 2 09:08:10 2007 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 DEF5616A41F for ; Thu, 2 Aug 2007 09:08:10 +0000 (UTC) (envelope-from mail@sysfault.org) Received: from smtprelay09.ispgateway.de (smtprelay09.ispgateway.de [80.67.29.23]) by mx1.freebsd.org (Postfix) with ESMTP id 45EE013C459 for ; Thu, 2 Aug 2007 09:08:10 +0000 (UTC) (envelope-from mail@sysfault.org) Received: (qmail 13478 invoked from network); 2 Aug 2007 08:41:25 -0000 Received: from unknown (HELO medusa.sysfault.org) (936934@[89.182.30.246]) (envelope-sender ) by smtprelay09.ispgateway.de (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 2 Aug 2007 08:41:25 -0000 Received: from localhost ([127.0.0.1] helo=medusa.sysfault.org) by medusa.sysfault.org with esmtp (Exim 4.67 (FreeBSD)) (envelope-from ) id 1IGWH7-000D52-30 for freebsd-standards@freebsd.org; Thu, 02 Aug 2007 10:43:18 +0200 Received: (from marcus@localhost) by medusa.sysfault.org (8.14.1/8.14.1/Submit) id l728hFFf050283 for freebsd-standards@freebsd.org; Thu, 2 Aug 2007 10:43:15 +0200 (CEST) (envelope-from marcus) Date: Thu, 2 Aug 2007 10:43:15 +0200 From: Marcus von Appen To: freebsd-standards Message-ID: <20070802084314.GB1159@medusa.sysfault.org> Mail-Followup-To: freebsd-standards MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NMuMz9nt05w80d4+" Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) Subject: First rudimentary version of the cflow utility 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: Thu, 02 Aug 2007 09:08:11 -0000 --NMuMz9nt05w80d4+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, as I wrote in the middle of the last year I started to work on an own implementation of the cflow utility for FreeBSD, so it can be imported into the main src tree without any legal issues. A first rudimentary version for C file graphs is now ready and can be downloaded from http://sysfault.org/freebsd/cflow.tar.gz Executing ./cgraph sourcefile.c should print out a nice call graph of the source file. The cgraph utility currently does not implement the arguments as specified by the POSIX standard, but keep in mind that it is a really early work in progress ;-). It can deal with plain C source files and currently does not take includes or macro substitutions into account although a later version should do, so that both, function definitions and macros, can be resolved correctly. As soon as I finished the C graph part, I'll go on to add lex and yacc support. The complete cflow utility should consist of a main shell script, which takes care of determining the file type and pass it to the corresponding program (cgraph, lexgraph, yaccgraph) to print the call graphs. Regards Marcus --NMuMz9nt05w80d4+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGsZkio/JpszXavhwRAihmAJ4ugHE8qnBrU3AYBA78fPx0ZD0qUwCfeMid j+ZqhTxjnBUC5dKCMMw/LwE= =dbam -----END PGP SIGNATURE----- --NMuMz9nt05w80d4+--