gcc: decide to which function does a line of code belong to

时间:2015-07-28 15:40:11

标签: c

How can I extract someting similar? The goal is to determinate easily in which function does one line of code belong to. The goal is to create a similar file:

none:   void funct1(void)
funct1: {
funct1:   int i = 0;
funct1:   int j = 0;
funct1:   ....
funct1: }

none:    void functXY(void)
functXY: {
functXY:   int i = 0;
functXY:   int j = 0;
functXY:   ....
functXY: }

Do I really need AST for this? I use gcc compiler with C89 code.

0 个答案:

没有答案