From owner-freebsd-current@FreeBSD.ORG Thu Jan 17 19:53:49 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DDD116A419 for ; Thu, 17 Jan 2008 19:53:49 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:610:652::211]) by mx1.freebsd.org (Postfix) with ESMTP id 1743A13C465 for ; Thu, 17 Jan 2008 19:53:49 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 55DBB1CEE3; Thu, 17 Jan 2008 20:53:48 +0100 (CET) Date: Thu, 17 Jan 2008 20:53:48 +0100 From: Ed Schouten To: FreeBSD Current Message-ID: <20080117195348.GA67081@hoeg.nl> References: <20080117190011.GA1094@medusa.sysfault.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="liOOAslEiF7prFVr" Content-Disposition: inline In-Reply-To: <20080117190011.GA1094@medusa.sysfault.org> User-Agent: Mutt/1.5.17 (2007-11-01) Subject: Re: BSD cflow available X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2008 19:53:49 -0000 --liOOAslEiF7prFVr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Marcus, * Marcus von Appen wrote: > Those interested in it are invited to test it out and blame me for any > error that occurs. You can get the most recent version either using the > bzr repository at http://sysfault.org/freebsd/cflow or by downloading > on of the source packages available at http://sysfault.org/freebsd/. >=20 > Once downloaded (and extracted), you can build it using make. > Afterwards you will find the assembler flowgraph generator under > asmgraph/, the C flowgraph generator under cgraph/: >=20 > ./asmgraph/asmgraph test/posixtest_nasm.s > ./cgraph/cgraph test/posixtest.c >=20 > As I did not integrate it into a local src/ tree for now, use both > programs directly, not the cflow.sh shell script. I just tried cgraph to see how it works, I've never used cflow before (I didn't even know it was part of POSIX). I don't know if this is required by the standards, but here it goes: When I create 2 C files: ~~~~~~~~~~~~~~~~~~ a.c: void a(void) { b(); } ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ b.c: void b(void) { } ~~~~~~~~~~~~~~~~~~ Two very simple C files with a function call that connects the objects together. When I run cgraph, I get this: | 1 a: void(), | 2 b: <> | 1 b: void(), Isn't the application supposed to resolve b as well? cflow looks like a useful utility. Hope to see it get integrated. :-) Yours, --=20 Ed Schouten WWW: http://g-rave.nl/ --liOOAslEiF7prFVr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkePskwACgkQ52SDGA2eCwWGYQCfSJmF8qOmY9woqu7GWGmluFz9 qH0An0cYyovnXviQwci0/BUVgCPwAK71 =noii -----END PGP SIGNATURE----- --liOOAslEiF7prFVr--