Questions tagged [cflow]

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.

https://www.gnu.org/software/cflow/

8 questions
6
votes
2 answers

how to give more than one c file as input to GNU Cflow?

I was able to generate the callgraph of one file using gnu - cflow, but I was not able to find out how to generate the call graph for multiple files using cflow. I tried following cflow test.c,hello.c It generates the callgraph for test.c and not…
gramcha
  • 692
  • 9
  • 16
2
votes
2 answers

use MinGW to create exe file in windows from GNU source package

the basic idea was, I wanted to generate the call graph in text format for several c files. After googling around for long time, i found cflow, which can deliver everything I want, but it is only runable in Linux or else. Then I began to search how…
OISS
  • 97
  • 10
1
vote
2 answers

How to show "only" defined functions in GNU cflow?

I have a C file like this: // SPDX-License-Identifier: GPL-2.0 #include #include #include #include "nl80211.h" #include "core.h" #include "rdev-ops.h" int __cfg80211_stop_ap(struct…
Akshdeep Singh
  • 1,301
  • 1
  • 19
  • 34
1
vote
1 answer

gnu cflow - not recognizing "typedef struct"

GNU cflow analyzes a collection of C source files and prints a graph, charting control flow within the program. My .c or .cpp file typedef struct _type_1{ int a; } type_1_t; typedef struct _type_2{ int a; } type_2_t; int main() { …
Bob
  • 4,576
  • 7
  • 39
  • 107
0
votes
1 answer

cflow can't recognize function call in loop

int main() { for (int i = 1; i < 10 ; i++) { test1(); } for (int i = 1; i < 10 ; i++) test2(); return 0; } So for the code above, cflow can see test2() but not test1(). See output below: $cflow tmp.c main()
0
votes
1 answer

Is there a way to dynamically change the input to a system call in google colab?

I was wondering if there is a way to dynamically change a subprocess call. Right now I'm running into a problem where I can only input a static string into a subprocess call for google colab and no way to input a string variable. Here is an example…
Alfred T
  • 73
  • 1
  • 1
  • 5
0
votes
1 answer

How to use cflow in makefile?

I want to generate call graph from a object with makefile. I have read the offical manual, at this page, it decribe a way to use cflow in makefile, but not specific enough. I tried to follow the manual, but I didn't get any output. What have I…
0811张庆昊
  • 538
  • 4
  • 16
0
votes
0 answers

Does cflow generate a sound call graph from C programs?

By "sound"ness, I mean that it has all the edges that are possible at runtime.
Sida
  • 23
  • 3