On 04/28/2021 06:08 AM, Matt Shaver wrote:
I think what Stuart wants is a diagram of the data structures in
Linuxcnc that visually represents their scope and that shows what code
accesses them.
Yes, that would be lovely, but would likely be the size of a street map of Seoul, S. Korea! LinuxCNC is a large program, with lots of data being accessed by many functions.

I think, maybe, the only way to actually do this is to have a program that goes through the entire source, extracting all structures and access to them, and put it all in a database. Then, you could have a program that finds all the structures that match an expression, and tells what functions access that structure. Bonus points for showing which functions write to the structure.

This would be a great tool, maybe somebody has written such a tool. If not, I'll bet it would be found useful by a bunch of others. To do it right, the scanning part of the program might look a lot like a C compiler.

Jon


_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to