8-bit Proprietary F2MC-8L Family Support Tools

5. Cooperation

In cooperation with SOFTUNE Workbench, the following SOFTUNE components help improve the quality of C-language programming, which greatly increases reviewing and documentation efficiency.

1)SOFTUNE V3 C Checker

Designed to meet the following requests from beginners through to advanced users:

Eliminate all coding mistakes.

Review programs quickly and efficiently.

Enable even C-language beginners to create quality code.

Maximize coding skills.

Use software assets on Fujitsu CPUs.

The SOFTUNE C Checker checks code for maintainability, methods of expanding specifications and transportability; indicates areas where quality and performance could be improved, and reports these results to the user. The user can then review the C-language code.

(1) Outline

Recently software for embedded microcontrollers has been developed in the C language. However, it is difficult to understand the message output from a compiler unless the language specifications are well known.

This development support tool checks C-source programs to display and print advice for better quality and performance. It also has a facility for selecting necessary advice carefully.

(2)Features

Outputs advised to be suitable for these objectives: Portability, coding errorperformance, porting to Fujitsu CPU’s.

Allows customization according to the programmers level.

Works with C compilers (fcc911/fcc911s, cc907/fcc907s, fcc896s) for Fujitsu microcontrollers (FR family, F2MC- 16 family, and F2MC-8L family).

Provides easy operation and simple display over a GUI.

(3)Advising Function

The following pieces of advice are given. “Reason of check”, “Example of program”, “Suggestion of correction”, and “One-point advice” are displayed and explained for each check item.

Portability

This tool makes a close check on the items “processing-definded operation” and “undefined operation” which can be problems in portability within the ANSI standard.

It also gives an explanation of the operation of C compilers (Fcc911, Fcc907 and Fcc896) for Fujitsu microcon- trollers.

For example, the tool gives the user proper advice on many problems (such as a data type acceptable to a structure, code, and its arrangement) at the time of porting.

Coding error

This tool indicates the items which are not wrong in the language specifications but may cause an error and the items which are logically inconsistent.

For example, the equivalent expression "if (a==0)" in the if statement is likely to be typed as the assignment expression "if (a=0)" by mistake. Most compilers cannot detect such an error.

Performance

This tool indicates the items generally providing better performance and the items essential and effective for the FR family, F2MC-16 family and F2MC-8L family.

Stress is especially, put on the detection of object size reduction which can be a problem in software for embedded microcontrollers.

For example, if a function return value is structure of the double type, an area is reserved for the return value and an object which is to be transferred to the area is output.

This tool advises the user to transfer the function return value by a pointer and largely reduce the object size.

Porting to Fujitsu CPU

This tool advises the user what to consider in porting exsting software from other makers’ CPU to Fujitsu CPU in the FR family, F2MC-16 family and F2MC-8L family.

For example, in porting software resources created for the F2MC-16 family to the FR family, this tool advises the user to delete the expansion specifications (__far, __near, and __direct etc.) inherent to the F2MC- 16 family.

F2MC-8LFamily

Support tools

 

 

65