BSD Ports

devel/cflow 1.8 OpenBSD

analyze C source files and print a call graph

System
OpenBSD
Repository
OpenBSD ports
Maintainer
Benoit Lecocq <[email protected]>
Categories
devel

Description

GNU cflow analyzes a collection of C source files and prints a graph, charting control flow within the program.

GNU cflow is able to produce both direct and inverted flowgraphs for C sources. Optionally a cross-reference listing can be generated. Two output formats are implemented: POSIX and GNU (extended).

Input files can optionally be preprocessed before analyzing.

The package also provides Emacs major mode for examining the produced flowcharts in Emacs.

Note: this program is written in C and is not the same as cflow-2.x which is a bash script using a lex and yacc generated parser.

In the other systems

SystemPortVersion
OpenBSDdevel/cflow1.8
FreeBSDdevel/cflow2.0_2
NetBSDdevel/cflow1.7
DragonFlydevel/cflow2.0_2
HardenedBSDdevel/cflow2.0_2
GhostBSDdevel/cflow2.0_2

Install

Binary package:

pkg_add cflow

From the ports tree:

cd /usr/ports/devel/cflow && make install

Dependencies

Build dependencies 1
Required by 1