Author Topic: Create flowchart from source code  (Read 28750 times)

Qwe_EA

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Create flowchart from source code
« on: September 21, 2021, 05:13:56 pm »
Hi,

Is there any capability for obtain flowchart (activity diagram) from source code c/c++ ?

Thanks.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Create flowchart from source code
« Reply #1 on: September 21, 2021, 10:21:33 pm »
No.

q.

Qwe_EA

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Create flowchart from source code
« Reply #2 on: September 22, 2021, 11:15:22 pm »
Can it done by any third-party add-in ? (integrated in EA)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Create flowchart from source code
« Reply #3 on: September 23, 2021, 02:02:28 am »
Who knows? I would guess also no.

q.

KalpakD

  • EA User
  • **
  • Posts: 62
  • Karma: +0/-0
    • View Profile
Re: Create flowchart from source code
« Reply #4 on: October 15, 2023, 01:10:40 am »
An IDE like Understand does it.
But I don't know if its output compatible with EA.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Create flowchart from source code
« Reply #5 on: October 15, 2023, 01:30:04 am »
Generally it's pointless to create any "flow" from code. Read about the halting problem or just think what you are trying to do. SD (or any similar kind of "flow" description) needs to be done by a human (or try ChatGPT if you are desperate). Someone(/thing) needs to decide which are meaningful paths out of the endless number of possible ones.

q.

KalpakD

  • EA User
  • **
  • Posts: 62
  • Karma: +0/-0
    • View Profile
Re: Create flowchart from source code
« Reply #6 on: October 20, 2023, 12:01:49 am »
Not true.
Even a top-level flowchart will go a long in helping to understand the code.
Especially poorly documented legacy code.
I have used Understand quite effectively to review a big project in embedded C which did not have any kind of design documents and code which had almost no meaningful comments.
 

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Create flowchart from source code
« Reply #7 on: October 20, 2023, 03:12:33 am »
I was talking about an automat doing that which will not work. You are (very likely) talking about human created flows.

q.