Fujitsu Semiconductor Computer Hardware User Manual


 
159
16-bit Proprietary F
2
MC-16L/16LX/16F Family
Support Tools
F
2
MC
-
16L/LX/F Family
Support tools
2) SOFTUNE C Analyzer
Designed to meet the following user situations:
One wishes to examine a program’s structure or processing, but the programmer is absent or documentation is
unavailable.
During program development, one wishes to create a structural program while taking into account structure and
processing.
One wishes to examine the range of effects caused by program modification.
One wishes to create a program’s internal documentation.
One wishes to explore the possibilities of a more efficient program.
The structure and usage of data in a C-language source program are displayed visually, and the internal data struc-
ture, functional tree, stack usage and other infomation can be acquired and stored in a file.
(1) Outline
Recent software (ROM) for embedded microcontrollers is increasingly extending its development scale. This
situation is created from development by many programmers, diversion of exsting resources, and use of package
programs.
This development support tool statically analyzes the C-source program to visually display and print the function-to-
function structure, reference data, and statistical data. This tool creates data necessary for design and
maintenance, as well as having a feature peculiar to C compilers for Fujitsu microcontrollers (a feature of calculating
the maximum amount of stacks used), considering its embedded feature.
(2) Features
Displays and prints the function-to-function structure, reference data, and statistical data.
Supports the embedded capability of C compilers for Fujitsu microcontrollers.
Provides easy operation and simple display over a GUI.
(3) Explanation of Features
The following data is enabled for development, maintenance, and higher porting efficiency.
Graphic flow
This feature diplays the "call" function in the block structure way. It also allows the display of the entire function
and calls from any function and the retrieval of functions.
Logic flow
This feature visually displays the internal structure of the C-source program.
For example, it shapes the control structure of for and switch statements and structure declarations. A jump
feature for retrieval by functions, variable, tag, and macro names is also provided.
Displaying statistical data
This feature displays the complexity and line count of a programs every function, the source of destination
function name, and the count of appearances of if, for and asm statements, etc.
Displaying argument data
This feature displays data about the function-called file name and line number, the return value of the declared
function, and the type of argument. It also checks the adjustability of dummy arguments with actual arguments.
Displaying cross-reference data
This feature displays functions, variables, tag and macro declarations in its function and its line number.
Displaying global data
This feature displays the function using global variables. It also detects unused global variables.
Program checking
This feature checks and displays the adjustabiltiy of dummy arguments with actual arguments.
Calculating the maximum amount of stacks used
This feature calculates and displays the amount of stacks used in the entire function, as well as in any function.
This calculation is made on the basis of the output of C compilers (Fcc911s, Fcc907s and Fcc896s) for Fujitsu
microcontrollers (FR family, F
2
MC-16 family and F
2
MC-8L family).