debian man page for nccgen

Query: nccgen

OS: debian

Section: 1

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

nccgen(1)							      nccgen								 nccgen(1)

NAME
nccgen - source code analysis
SYNOPSIS
nccgen file.c
DESCRIPTION
nccgen is a program that can help you hack/study the source code of C programs. It will report which functions call which other functions, which functions are called by other functions and what global variables and members of structures are used by functions. This is useful if you want to analyse a program and eventually hack it.
USAGE
To use nccgen find the Makefile of the program you want to analyse. In the Makefile locate the line which sets the C compiler. That is usually something like CC = gcc and you must change it to CC = nccgen -ncgcc -ncld -ncfabs. Then compile the application. It may be useful to also replace AR = ar with AR = nccar and LD = ld with LD = nccld to link nccout object files.
OUTPUT
nccgen will produce a file with nccout extension for every C file analysed. Then you can use the viewer nccnav (with nccnav program.nccout ) to view this data and do your work. If the procedure of make links object files with "ar" or "ld" you should manually link the produced .nccout files.
AUTHORS
The homepage of the ncc project is: http://students.ceid.upatras.gr/~sxanth/ncc/
SEE ALSO
The documentation included in the package. Linux 8 Mar 2003 nccgen(1)
Related Man Pages
mkdep(1) - osx
mkdep(1) - freebsd
module::install::makefile(3) - centos
automake-1.9(1) - debian
module::install::makefile(3pm) - debian
Similar Topics in the Unix Linux Community
stupid students supid stupid students
modifying C file and linking back to project files
Object File Error
ncc 2.8 (Stable branch)
Compiling multiple files