chaudron / cally Goto Github PK
View Code? Open in Web Editor NEWCally, a C project call graph generator using GCC's generated Register Transfer Language (RTL) files
License: Apache License 2.0
Cally, a C project call graph generator using GCC's generated Register Transfer Language (RTL) files
License: Apache License 2.0
I wondered which version of GCC this has been tested with. I am using a fairly old GCC version 4.5 and am seeing some incorrect output from the tool.
Nodes that have missing links to other nodes due to max-depth, exclude, or no-externs should be visually different. Maybe a red lining?
Hi, Chaudron. Thanks for this great tool! There's only one thing I really miss which is handling multiple functions with the same name. As an example, let's imagine a toy-project containing four files: a.c
, b.c
, header.h
and c.c
:
a.c:
static void a(void)
{}
void a_wrapper(void)
{
a();
}
b.c:
void a(void)
{}
header.h:
void a(void);
void a_wrapper(void);
c.c:
#include "header.h"
int main()
{
a();
a_wrapper();
return 0;
}
The result of cally's full graph for this project is:
But as we have two different and valid a()
declarations in our project, we would expect something like this:
Cally does warn of multiple definitions, which is great. But it would be even better if it could disambiguate the different definitions as they are all valid C constructions.
I know this might be a limitation of the *.expand
files format: function calls contain the callee address but function declarations don't show this information, so we cannot disambiguate. But I thought that perhaps raising this issue could hopefully bring up ideas on how this could be resolved (maybe even by using more than just the *.expand
files). Any thoughts/ideas on this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.