Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

nccgen(1) [debian man page]

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)

Check Out this Related Man Page

MKDEP(1)						    BSD General Commands Manual 						  MKDEP(1)

NAME
mkdep -- construct Makefile dependency list SYNOPSIS
mkdep [-ap] [-f file] [flags] file ... DESCRIPTION
The mkdep utility takes a set of flags for the C compiler and a list of C source files as arguments and constructs a set of include file dependencies which are written into the file ``.depend''. An example of its use in a Makefile might be: CFLAGS= -O -I../include SRCS= file1.c file2.c depend: mkdep ${CFLAGS} ${SRCS} where the macro SRCS is the list of C source files and the macro CFLAGS is the list of flags for the C compiler. The user has the ability to change the preprocessor and preprocessor options used. For instance, to use gcc as the preprocessor and to ignore system headers, one would use depend: env MKDEP_CPP="gcc -E" MKDEP_CPP_OPTS=-MM mkdep ${CFLAGS} ${SRCS} The options are as follows: -a Append to the output file, so that multiple mkdep's may be run from a single Makefile. -f Write the include file dependencies to file, instead of the default ``.depend''. -p Cause mkdep to produce dependencies of the form: program: program.c so that subsequent makes will produce program directly from its C module rather than using an intermediate .o module. This is useful for programs whose source is contained in a single module. ENVIRONMENT
CC Specifies the C compiler to use. The specified compiler is expected to have options consistent with the GNU C compiler. MKDEP_CPP Specifies the preprocessor to use. The default is "${CC} -E". MKDEP_CPP_OPTS Specifies the non-CFLAGS options for the preprocessor. The default is "-M". FILES
.depend File containing list of dependencies. SEE ALSO
cc(1), cpp(1), make(1) HISTORY
The mkdep command appeared in 4.3BSD-Tahoe. BSD
June 6, 1993 BSD
Man Page

12 More Discussions You Might Find Interesting

1. Programming

call functions from diferents programs

hi i have ten program in C, and there are functions what are in all the programs. so, i want to make a directory to store all the functions what are in all the programs, and call them from the C programs. (sending variables and values) is that possible?¿? how ca i do that?¿? any idea,... (1 Reply)
Discussion started by: DebianJ
1 Replies

2. Programming

A beginner's problem

Hi, I'm a beginner to study linux program, I know use gcc can link one *.c file to a exe file, but how to link different source files(*.c) to a exe at once. AnyBody know and tell me, thanks. (2 Replies)
Discussion started by: kira_freedom
2 Replies

3. UNIX for Dummies Questions & Answers

modifying C file and linking back to project files

hi, This is the first time I work in a big C project. All source code files are located in say directory /source/pp and all header files are in /include/pp. I've created a link to both of these directories from my home dir, say /home/ss. So in the /home/ss dir I have the /source/pp and /include/pp... (1 Reply)
Discussion started by: bruins2005
1 Replies

4. Programming

Object File Error

Hi, I've tried to compile a program I wrote with a Makefile, yet it returns an error: <<<test_log>>> itest_log.o /sr/local/bin/gcc -o test_log.o -I ../../../include -L ../../../lib -llog_mgr sh: itest_log.o: execute permission denied Error code 1 make: Fatal error: Command failed for... (3 Replies)
Discussion started by: Stevhp
3 Replies

5. Programming

Makefile help

I've copied a C++ project from my old computer to this one, and I am now trying to (without success) compile the project in the same way as I did before. I use Emacs as a text editor and compile with g++. Here is what my makefile looks like: CC=g++ CPPFLAGS=-Wall CPPFLAGS+=-I..... (4 Replies)
Discussion started by: TriKri
4 Replies

6. Programming

Gcc with pipe

I want to compile all files in my directory i wrote find *.c | gcc -o * *.c but it dosent work :( Help pliz (12 Replies)
Discussion started by: rzili
12 Replies

7. UNIX for Dummies Questions & Answers

Compiling multiple files

Hey there,hope you are all well. Actually i am trying to compile two .c files with gcc in unix and i also have one .txt and one .h..How do i compine them alltogether in order for my program to run? I will have to do gcc -o myprog myprog1.c myprog2.c and then how i will use myprog with the .txt... (1 Reply)
Discussion started by: Aeria Gloris
1 Replies

8. BSD

Anti hack software search

Hi there I'm looking for anti hack software. I want a few types. 1. User monitoring. If anyone tries to login 3 or more times with the wrong info.. that user should be cut off for 15 minutes 2. Permanent IP Blocking - it would be great to have a user friendly/faster method of Permanent IP... (3 Replies)
Discussion started by: patlee
3 Replies

9. Programming

compiling old C program in Linux.

Hello, I am writing to ask for support about compiling an very old but famous C-progam for genetics study called MapMaker/QTL, and the source code is available from MIT: http://www.broadinstitute.org/ftp/distribution/software/mapmaker3/The program was originally designed for systems like SunOS... (1 Reply)
Discussion started by: yifangt
1 Replies

10. Programming

Linking .so into C program

I have a C binary file(.so as extension) which is delivered by a product. How do i use this functionalities of this .so file in my C program? How can in link the .so to my C program? (1 Reply)
Discussion started by: vkca
1 Replies

11. UNIX for Dummies Questions & Answers

What is meaning of given line?

Hello Guys, I was study some links, where I was unable to understand below line, please enhance me these code. (3 Replies)
Discussion started by: aaditya321
3 Replies

12. Programming

If else block C code

Hi, We have hundreds of c codes for which we need to identify and analyse all the if , nested if and while conditions used in code.. is thr any tool to do that. All we is like index (like 1.2.1.3 in case of nested if)and the corresponding code (may be wrriten in a table/file). Thanks..! (2 Replies)
Discussion started by: anijan
2 Replies