Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
ncc(1)				      ncc				ncc(1)

NAME
       ncc - source code analysis

SYNOPSIS
       ncc file.c

DESCRIPTION
       ncc is a	program	that can help you hack/study the source	code of	C pro-
       grams.  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 ncc 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 = ncc -ncgcc -ncld
       -ncfabs.	 Then compile the application. It may be useful	 to  also  re-
       place  AR  = ar with AR = nccar and LD =	ld with	LD = nccld to link nc-
       cout object files.

OUTPUT
       ncc will	produce	a file with nccout extension for  every	 C  file  ana-
       lysed.	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.upa-
       tras.gr/~sxanth/ncc/

SEE ALSO
       The documentation included in the package.

Linux				  8 Mar	2003				ncc(1)

NAME | SYNOPSIS | DESCRIPTION | USAGE | OUTPUT | AUTHORS | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=ncc&sektion=1&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help