From owner-freebsd-questions@FreeBSD.ORG Mon May 17 21:24:26 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 09FDB16A4CE for ; Mon, 17 May 2004 21:24:26 -0700 (PDT) Received: from webmail.tiscali.de (relay1.tiscali.de [62.26.116.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB25643D46 for ; Mon, 17 May 2004 21:24:24 -0700 (PDT) (envelope-from sa.deutscher@tiscali.de) Received: from brahms.asylum.invalid (217.235.3.3) by webmail.tiscali.de (6.7.019) id 40A2742D001DE15D; Tue, 18 May 2004 06:24:23 +0200 Received: by brahms.asylum.invalid (IBM OS/2 SENDMAIL VERSION 2.0/2.0) id GAA221.72; Tue, 18 May 2004 06:39:35 -0400 Date: Fri, 14 May 2004 10:38:16 +0200 From: "Stefan A. Deutscher" To: freebsd-questions@freebsd.org Message-ID: <20040514083816.GA2184@tiscali.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i X-Operating-System: OS/2 2.45 X-Machine-Uptime: brahms: uptime is 31 days, 12:29 hours and 48 seconds Subject: Re: [OT] Tool to convert src code to flowchart X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: sad@mailaps.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 May 2004 04:24:26 -0000 On Fri, Apr , 2004 at 12:09:09PM -0600, Danny MacMillan wrote: > On Thu, 29 Apr 2004 17:30:35 -0500 (CDT), Pranav A. Desai > wrote: > > >Hi! > > I need it for C. The chart can be ascii. > >E.g. > >main.c > >------ > >main(){ > > A(); > > B(); > >} > >A.c > >--- > >A() { > > C(); > >} > >will be: > >main -> A > > | |-> C > > | > > -> B > >etc. > > I believe that's called a call graph. A flowchart is something else > entirely. Provided your code actually compiles and runs, you can also compile it with profiling support enabled (see man gcc) and run gprof on it. That gives you not only the call graph but also the time you spend in each routine etc. Cheers, Stefan -- ============================================================================ Stefan A. Deutscher | Donostia International Physics Center | office: ++34-943-018174 Universidad del Pais Vasco, Facultad de Quimica | fax : ++34-943-015600 Departamento de Fisica de Materiales | home : ++34-943-270647 Apartado 1072, San Sebastian 20080, Spain | email : sad@mailaps.org ============================================================================