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
| System | Port | Version |
|---|---|---|
| OpenBSD | devel/cflow | 1.8 |
| FreeBSD | devel/cflow | 2.0_2 |
| NetBSD | devel/cflow | 1.7 |
| DragonFly | devel/cflow | 2.0_2 |
| HardenedBSD | devel/cflow | 2.0_2 |
| GhostBSD | devel/cflow | 2.0_2 |
Install
Binary package:
pkg_add cflow
From the ports tree:
cd /usr/ports/devel/cflow && make install