3.4.13 Callgraph Option

The -mcallgraph=type option controls what sort of call graph is printed in the map file. The available types are shown in the table.

Table 3-3. Callgraph types
TypeProduces
noneNo call graph
critOnly critical paths in the callgraph
stdStandard, short-form call graph (default)
fullFull call graph

The callgraph is generated by the linker, primarily for the purposes of allocating memory to objects in the compiled stack. Those routines defining stack objects that are not overlaid with other stack objects and that are hence contributing to the program's data memory usage are considered as being on a critical path.