CONTROL FLOW GRAPH

P

pavs

hi..

Just want to know if there is a tool to draw a control flow graph for
an entire java program that has multiple methods in it. If not i would
apreciate if some one could suggest a methodology to draw a CFG for an
entire java program.
 
B

bugbear

pavs said:
hi..

Just want to know if there is a tool to draw a control flow graph for
an entire java program that has multiple methods in it. If not i would
apreciate if some one could suggest a methodology to draw a CFG for an
entire java program.

A CFG is only possible for a language like FORTRAN
or COBOL, where methods have a "global" meaning.

In any usefully object oriented program, a method is tightly
(and deliberately) coupled with a particular instance.

Add into this inheritance and polymorphism and the whole
idea of a "complete" CFG is rendered almost meaningless.

BugBear
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top