Page 3 - FUJITSU LIMITED; MC FAMILY; OFTUNE; C CHECKER MANUAL
FUJITSU LIMITED FR/F 2 MC FAMILY S OFTUNE C CHECKER MANUAL for V3
Page 5 - PREFACE
i PREFACE ■ Objectives Thank you for purchasing the C checker, Softune C Checker. The C checker, Softune C Checker (referred to as the C Checker in the remainder of thismanual), is a built-in development support tool that accepts source programs written in C asinput and points out coding errors as w...
Page 8 - Reading This Manual
iv Reading This Manual ■ Product name abbreviation In this manual and this product, product names are designated as follows: SOFTUNE is designated as Softune. F 2 MC is designated as FFMC. The Microsoft ® Windows ® 98 operating system is abbreviated to Windows 98. The Microsoft ® Windows ® Millenniu...
Page 9 - CONTENTS
v CONTENTS CHAPTER 1 Overview ...........................................................................................................1 1.1 Softune C Checker .................................................................................................................................2 1.2 Func...
Page 13 - Softune C Checker
1 CHAPTER 1 Overview This chapter provides an overview of using the C Checker to check C source programs. 1.1 Softune C Checker 1.2 Function Outlines
Page 15 - Function Outlines
1.2 Function Outlines 3 1.2 Function Outlines The functions provided by the C Checker are largely divided into the following groups. This section briefly explains these groups, in the indicated order. • Check• Set check conditions• File• Edit• Search• View• Project management• Diagnostic message• Co...
Page 17 - Check
1.2 Function Outlines 5 1.2.1 Check The check functions are for outputting messages calling the user's attention to the problem lines in a source program. It contains the functions for selecting the file to be checked and for setting up check options. These functions enable the user to easily view t...
Page 19 - Set check conditions
1.2 Function Outlines 7 1.2.2 Set check conditions The functions in this group are for setting check conditions. Choosing the [Set up check options] command from the [Check] menu displays the [Set up check options] dialog box, in which check conditions can be selected. These functions enable the use...
Page 21 - Files
1.2 Function Outlines 9 1.2.3 Files The functions in this group are for manipulating source program files. These functions enable the user to save and print corrected source program files. ■ New Creates a new file. A file with no title is opened on the editor. ■ Open Opens an existing file. Choosing...
Page 23 - Edit
1.2 Function Outlines 11 1.2.4 Edit The functions in this group are for editing source programs. The cutting and pasting operations can be performed on the file being edited. These functions enable the user to efficiently correct the lines in the source program that require attention as indicated by...
Page 24 - Search
12 CHAPTER 1 Overview 1.2.5 Search The functions in this group are for searching for a character string through the source program opened on the editor. They include the functions for specifying search conditions, setting tags during search, and jumping to tags. These functions enable the user to ef...
Page 25 - View
1.2 Function Outlines 13 1.2.6 View The view functions are for turning tool bars and windows on or off and for customizing a variety of windows and the editor. These functions enable the user to change screen settings freely. ■ Tool bars Turns the following tool bars on or off. • Standard tool bar •...
Page 26 - Project management
14 CHAPTER 1 Overview 1.2.7 Project management The project management functions are for managing the source program to be checked. They include the following functions: • Create a new project• Use an existing project• Create a project from Softune Workbench project file These functions enable the us...
Page 27 - Diagnostic message
1.2 Function Outlines 15 1.2.8 Diagnostic message The diagnostic message functions are used to display information about the lines that have been checked. Display information includes file names, line numbers with a problem found, message numbers, simple messages, and file path names. Double-clickin...
Page 29 - Compile; • fcc896s (compiler for the F
1.2 Function Outlines 17 1.2.9 Compile The compile functions are for compiling a source program. The following compilers can be selected: • fcc911s (compiler for the FR Family)• fcc907s (compiler for the F 2 MC-16 Family) • fcc896s (compiler for the F 2 MC-8L Family) • ANCI (ANSI compiler) These fun...
Page 32 - The main window contains the following:
20 CHAPTER 1 Overview 1.2.11 Window The main window contains the following: • Menu bar• Tool bars• Status bar• Project management window• Diagnostic message management window• Check log display window• Detailed message window• Editor These components enable the user to obtain information required fo...
Page 37 - Selection of a Source File; Execute one in the above-mentioned command.
2.2 Selection of a Source File 25 2.2 Selection of a Source File To check a source program using the C Checker, select the source program file to be checked. • [Open] command from the [Files] menu• [New] command from the [Project] menu• [Open] command from the [Project] menu Execute one in the above...
Page 42 - Setting up Check Options
30 CHAPTER 2 Checking Procedures 2.3 Setting up Check Options Before using the C Checker to check a source program, set up the required options. ■ Setting up check options Choose the [Check Option] command from the [Check] menu, and the [Check Option] dialog box, shown in Figure 2.3-a, appears. Figu...
Page 43 - Starting a Check
2.4 Starting a Check 31 2.4 Starting a Check To start a check using the C Checker, choose the [Active Document] command from the [Check] menu. Alternatively, click the [Active Document] button in the check tool bar. ■ Starting a check To start a check, choose the one command from the [Check] menu. (...
Page 48 - Aborting a Check
36 CHAPTER 2 Checking Procedures 2.5 Aborting a Check To abort a check before it terminates, choose the [Stop] command from the [Check] menu. Alternatively, click the [Stop] button in the check tool bar. ■ Aborting a check Choose the [Stop] command from the [Check] menu, and the check aborts. Figure...
Page 49 - Exiting from the C Checker
2.6 Exiting from the C Checker 37 2.6 Exiting from the C Checker To exit from the C Checker, click the [Exit] command from the [Files] menu. (See Figure 2.6-a.) This causes the system to terminate normally. ■ Exiting from the C Checker Choose the [EXIT SOFTUNE C Checker] command from the [Files] men...
Page 51 - This chapter explains how to set up check conditions.; General
39 CHAPTER 3 Setting up Check Options This chapter explains how to set up check conditions. 3.1 General 3.2 Include Paths 3.3 Macro Definitions 3.4 Suppressing Messages
Page 52 - Set up the general options to be passed to the C Checker.
40 CHAPTER 3 Setting up Check Options 3.1 General Set up the general options to be passed to the C Checker. ■ Dialog box for setting up check options Choose [Check Option] command from the [Check] menu or [Check Option] command from the pop-up menu in the project management window (See Figure 3.1-a)...
Page 55 - Include Paths; Set up the include paths to be passed to the C Checker.
3.2 Include Paths 43 3.2 Include Paths Set up the include paths to be passed to the C Checker. ■ Dialog box for setting up include paths Figure 3.2-a shows the dialog box for setting up include paths when select [Include Path] tab which exists in the [Check Option] dialog box. Figure 3.2-a Dialog bo...
Page 58 - Macro Definitions; Set up the macro definitions to be passed to the C Checker.
46 CHAPTER 3 Setting up Check Options 3.3 Macro Definitions Set up the macro definitions to be passed to the C Checker. ■ Dialog box for setting up macro definitions Figure 3.3-a shows the dialog box for setting up macro definitions when select [Macro definition] tab which exists in the [Check Optio...
Page 61 - Suppressing Messages; Diagnostic messages can be suppressed.
3.4 Suppressing Messages 49 3.4 Suppressing Messages Diagnostic messages can be suppressed. ■ Dialog box for suppressing messages Figure 3.4-a shows the dialog box for suppressing messages when select [Suppressing messages] tab which exists in the [Check Option] dialog box. Figure 3.4-a Dialog box f...
Page 63 - This chapter explains how to manipulate files.; File Menu
51 CHAPTER 4 File This chapter explains how to manipulate files. 4.1 File Menu 4.2 Dialog Box of the [Open] Command 4.3 Dialog Box of the [Save as] Command 4.4 Dialog Box of the [Print Set] Command
Page 71 - This chapter explains how to use the Edit menu.; Edit Menu
59 CHAPTER 5 Edit This chapter explains how to use the Edit menu. 5.1 Edit Menu
Page 72 - The Edit menu provides the following:
60 CHAPTER 5 Edit 5.1 Edit Menu The Edit menu provides the following: • [Undo] command• [Redo] command• [Cut] command• [Copy] command• [Paste] command• [Delete] command• [Select all] command ■ Edit menu ❍ [Undo] command Cancels the immediately preceding editing operation and restores the file to the...
Page 73 - This chapter explains how to use the Search menu.; Search Menu
61 CHAPTER 6 Search This chapter explains how to use the Search menu. 6.1 Search Menu 6.2 Dialog Box of the [Current file search] Command 6.3 Dialog Box of the [Replace] Command 6.4 Dialog Box of the [Find in Files] Command 6.5 Dialog Box of the [Tag list] Command
Page 76 - Dialog Box of the [Find in Current File] Command
64 CHAPTER 6 Search 6.2 Dialog Box of the [Find in Current File] Command The [Current file search] dialog box allows the user to search for a character string through the edit screen. ■ Dialog box of the [Find in Current File] command Choose the [Find] command from the [Search] menu, and the [Find i...
Page 78 - Dialog Box of the [Find in Files] Command
66 CHAPTER 6 Search 6.4 Dialog Box of the [Find in Files] Command Use the [Find in Files] dialog box to search for a string from the target file in the target directory. ■ Dialog box of the [Find in Files] command Choose the [Find in Files] command from the [Search] menu, and the [Find in Files] dia...
Page 79 - The [Tag list] dialog box lists the tags existing on the edit screen.
67 CHAPTER 6 Search 6.5 Dialog Box of the [List Tag] Command The [Tag list] dialog box lists the tags existing on the edit screen. ■ Dialog box of the [List Tag] command Choose the [List Tag] command from the [Search] menu, and the [Tag list] dialog box, shown in Figure 6.5-a, appears. Figure 6.5-a ...
Page 81 - This chapter explains the View menu.
69 CHAPTER 7 View This chapter explains the View menu. 7.1 View Menu 7.2 Tool Bars 7.3 Status Bar 7.4 Project Management 7.5 Diagnostic Messages 7.6 Detailed Messages 7.7 Check Log 7.8 Customize
Page 82 - View Menu
70 CHAPTER 7 View 7.1 View Menu The commands on the View menu turn on or off the tool bars, status bar, project management, diagnostic messages, and others.The View menu provides the following commands: • [Tool bars] command• [Status bar] command• [Project management] command• [Diagnostic message] c...
Page 84 - Tool Bars
72 CHAPTER 7 View 7.2 Tool Bars A tool bar is displayed at an upper position in the application window, directly below the menu bar. It contains the tools frequently used in the C Checker, which can be operated by clicking them with the left mouse button. ■ Tool bar Figure 7.2-a shows a tool bar exa...
Page 85 - Status Bar
7.3 Status Bar 73 7.3 Status Bar The status bar is displayed at the bottom of the C Checker window.To turn the status bar on or off, choose the [Status bar] command from the [View] menu. ■ Status bar The figure below shows a status bar example. Figure 7.3-a Status bar example In the left portion of ...
Page 86 - Project Management
74 CHAPTER 7 View 7.4 Project Management The project management window manage the source and include files loaded into projects.It also manages summary files in which the check status and other information are recorded. ■ Project management window Figure 7.4-a shows an example of the project managem...
Page 88 - Diagnostic Messages
76 CHAPTER 7 View 7.5 Diagnostic Messages The diagnostic message window displays simple diagnostic messages. ■ Diagnostic message window After completion of a check, the diagnostic message window displays simple diagnostic messages. Each diagnostic message contains a file name, line number, message ...
Page 90 - Detailed Messages
78 CHAPTER 7 View 7.6 Detailed Messages The detailed message window displays detailed diagnostic messages. ■ Detailed message window The detailed message window displays the detailed message corresponding to a message displayed in the diagnostic message window. Figure 7.6-a shows the detailed messag...
Page 92 - Check Log
80 CHAPTER 7 View 7.7 Check Log The check log window displays the log information collected during a check. ■ Check log window The check log window displays the status of the current check or compilation. Figure 7.7-a shows the check log window. Figure 7.7-a Check log window The check log window pro...
Page 93 - Customize; The [Customize] dialog box allows the user to set the following:
7.8 Customize 81 7.8 Customize The [Customize] dialog box allows the user to set the following: • Screen front and font size• Display attribute of the editor ■ [Customize] dialog box ❍ Screen font and font size Figure 7.8-a shows the font tag of the [Customize] dialog box. This dialog box provides t...
Page 97 - This chapter explains how to create and manipulate projects.; Project Menu
85 CHAPTER 8 Project This chapter explains how to create and manipulate projects. 8.1 Project Menu 8.2 Creating a New Project 8.3 Renaming Projects 8.4 Loads a File into Project
Page 100 - Creating a New Project
88 CHAPTER 8 Project 8.2 Creating a New Project To create a new project, choose the [New] command from the Project menu. ■ Creating a new project Choose the [New] command from the Project menu, and the [New Project] dialog box appears. In this box, enter the desired project name and the name of the ...
Page 102 - Renaming Projects
90 CHAPTER 8 Project 8.3 Renaming Projects The [Rename Project] dialog box allows the user to rename the currently edited project. ■ Renaming a project Figure 8.3-a shows the dialog box for renaming a project. This dialog box provides the following: • Old name: Displays the name of the currently ope...
Page 103 - Loads a File into Project
8.4 Loads a File into Project 91 8.4 Loads a File into Project The [Import File] dialog box allows the user to Loads a file into project. ■ Import file Loads a file into a project. Choosing the [Import File] command displays the [Import] dialog box (Figure 8.4-a). In this box, specify the name of th...
Page 105 - Message Menu
93 CHAPTER 9 Message This chapter explains how to view and manipulate diagnostic messages. 9.1 Message Menu 9.2 Detailed Messages
Page 109 - This chapter explains how to compile programs.; Setting up ANSI Compiler Options
97 CHAPTER 10 Compile This chapter explains how to compile programs. 10.1 Compile Menu 10.2 Setting up fcc911s Compiler Options 10.3 Setting up fcc907s Compiler Options 10.4 Setting up fcc896s Compiler Options 10.5 Setting up ANSI Compiler Options
Page 111 - This section explains how to set up the fcc911s compiler options.
10.2 Setting up fcc911s Compiler Options 99 10.2 Setting up fcc911s Compiler Options This section explains how to set up the fcc911s compiler options. ■ Dialog box for setting up the fcc911s compiler options Choose [Compile Option] command from the [Compile] menu or [Compile Option] command from the...
Page 114 - Detailed options for the fcc911s preprocessor
102 CHAPTER 10 Compile 10.2.1 Detailed options for the fcc911s preprocessor Set up the detailed compiler options related to the preprocessor of the fcc911s compiler. There are two dialog boxes, one for setting up include paths and the other for setting macro definitions. Set up the necessary options...
Page 120 - Detailed optimization options of the fcc911s compiler; Set up the detailed (optimization) options of the fcc911s compiler.
108 CHAPTER 10 Compile 10.2.3 Detailed optimization options of the fcc911s compiler Set up the detailed (optimization) options of the fcc911s compiler. ■ Dialog box for setting up the optimization options Choose [Optimization] command from the [Compile option] dialog box, the [Options controlling op...
Page 123 - Detailed options related to fcc911s output
10.2 Setting up fcc911s Compiler Options 111 10.2.4 Detailed options related to fcc911s output The following explains how to set up the options related to the output of the fcc911sfcc907ss compiler. ■ Dialog box for setting up the detailed options related to output Choose [Output] command from the [...
Page 124 - This section explains how to set up the fcc907s compiler options.
112 CHAPTER 10 Compile 10.3 Setting up fcc907s Compiler Options This section explains how to set up the fcc907s compiler options. ■ Dialog box for setting up the fcc907s compiler options Choose [Compile Option] command from the [Compile] menu or [Compile Option] command from the pop-up menu in the p...
Page 127 - Detailed options for the fcc907s preprocessor
10.3 Setting up fcc907s Compiler Options 115 10.3.1 Detailed options for the fcc907s preprocessor The following explains how to set up the detailed compiler options related to the preprocessor of the fcc907s compiler. There are two dialog boxes, one for setting up include paths and the other for set...
Page 133 - Detailed optimization options of the fcc907s compiler
10.3 Setting up fcc907s Compiler Options 121 10.3.3 Detailed optimization options of the fcc907s compiler The following explains how to set up the detailed optimization options of the fcc907s compiler. ■ Dialog box for setting up the optimization options Choose [optimization] command from the [Compi...
Page 135 - Detailed options related to fcc907s output
10.3 Setting up fcc907s Compiler Options 123 10.3.4 Detailed options related to fcc907s output The following explains how to set up the options related to the output of the fcc907s compiler. ■ Dialog box for setting up the detailed options related to output Choose [Output] command from the [Compile ...
Page 137 - This section explains how to set up the fcc896s compiler options.
10.4 Setting up fcc896s Compiler Options 125 10.4 Setting up fcc896s Compiler Options This section explains how to set up the fcc896s compiler options. ■ Dialog box for setting up the fcc896s compiler options Choose [Compile Option] command from the [Compile] menu or [Compile Option] command from th...
Page 140 - Detailed options for the fcc896s preprocessor
128 CHAPTER 10 Compile 10.4.1 Detailed options for the fcc896s preprocessor Set up the detailed compiler options related to the preprocessor of the fcc896s compiler. There are two dialog boxes, one for setting up include paths and the other for setting macro definitions. Set up the necessary options...
Page 146 - Detailed optimization options of the fcc896s compiler; Set up the detailed (optimization) options of the fcc896s compiler.
134 CHAPTER 10 Compile 10.4.3 Detailed optimization options of the fcc896s compiler Set up the detailed (optimization) options of the fcc896s compiler. ■ Dialog box for setting up the optimization options Choose [Optimization] command from the [Compile option] dialog box, the [Options controlling op...
Page 148 - Detailed options related to fcc896s output
136 CHAPTER 10 Compile 10.4.4 Detailed options related to fcc896s output The following explains how to set up the options related to the output of the fcc896s compiler. ■ Dialog box for setting up the detailed options related to output Choose [Output] command from the [Compile option] dialog box, th...
Page 152 - Detailed options for the ANSI preprocessor
140 CHAPTER 10 Compile 10.5.1 Detailed options for the ANSI preprocessor Set up the detailed compiler options related to the preprocessor of the fcc911s compiler. There are two dialog boxes, one for setting up include paths and the other for setting macro definitions. Set up the necessary options in...
Page 157 - Setup; This chapter explains the setup operation.; Editor Customization
145 CHAPTER 11 Setup This chapter explains the setup operation. 11.1 Setup Menu 11.2 Editor Customization 11.3 Environment of Compilers
Page 161 - Environment of Compiler
149 11.3 Environment of Compiler A compiler can be activated from the C Checker. After the environment of the compiler is set up, the compiler can be activated. This section explains how to set up the environment of the compiler. ■ Environment of compiler Select the [Compilation Environment] command...
Page 163 - Window; This chapter explains how to display and manipulate windows.
151 CHAPTER 12 Window This chapter explains how to display and manipulate windows. 12.1 Window Menu
Page 165 - This chapter explains how to display and manipulate help files.
153 CHAPTER 13 Help This chapter explains how to display and manipulate help files. 13.1 Help Menu
Page 167 - Sorting of the diagnostic message; This chapter explains how to sort of the diagnostic message; Popup menu of the diagnostic message
155 CHAPTER 14 Sorting of the diagnostic message This chapter explains how to sort of the diagnostic message 14.1 Popup menu of the diagnostic message 14.2 Sorting of the diagnostic message
Page 169 - Sorting of the diagnostic message
14.2 Sorting of the diagnostic message 157 14.2 Sorting of the diagnostic message The diagnostic message can be sorted by selecting [All Message], [Select Message], [Hide Message] command from pop-up menu of the diagnostic message. ■ Select Message Choose the [Select Message] command from popup menu...
Page 173 - APPENDIX
161 APPENDIX This appendix explains problems that may occur during the use of Softune C Checker. APPENDIX A "Troubleshooting"
Page 174 - APPENDIX A
162 APPENDIX A Troubleshooting APPENDIX A Troubleshooting Solves technical problems that may be encountered when using Softune C Checker.• Activation problems• Development environment-related• Standard editor-related• Frequently asked questions ■ Activation Problems ❍ Unable to start Softune C Check...
Page 179 - INDEX; Symbols
167 INDEX INDEX Symbols [Allocate networked drive] dialog box .................... 89 [Current file search] command ............................... 64 [Customize] dialog box........................................... 81 [Find in Files] command ......................................... 66 [Folder bro...
Page 183 - FUJITSU SEMICONDUCTOR; • CONTROLLER MANUAL; Electronic Devices
CM81-00304-5E FUJITSU SEMICONDUCTOR • CONTROLLER MANUAL FR/F 2 MC FAMILY S OFTUNE C CHECKER MANUAL for V3 September 2002 the fifth edition Published FUJITSU LIMITED Electronic Devices Edited Technical Information Dept.