
FUJITSU MICROELECTRONICS CM81-00206-6E CONTROLLER MANUAL FR FAMILY SOFTUNETM C/C++ COMPILER MANUAL for V6 FR FAMILY SOFTUNETM C/C++ COMPILER MANUAL for V6 FUJITSU MICROELECTRONICS LIMITED PREFACE ■ Objective of This Manual and Target Readers This manual describes the Softune C/C++ compiler (hereinafter referred to as the C/C++ compiler) usage procedures and libraries. This manual is prepared for persons who use the above-mentioned compiler and create and develop application programs in C and C++ language. Read this manual thoroughly before starting. This manual is to be read by persons who have a basic knowledge of each MCU (Micro Controller Unit). The compiler described in this manual conforms about C language to the American National Standard for Information Systems Programming Language C, X3.159-1989, which is abbreviated ANSI standard in this manual. Part of "ISO/IEC 14882:1998 Programming languages -- C++" is used to explain C++. FR, the abbreviation of FUJITSU RISC controller, is a line of products of FUJITSU MICROELECTRONICS Limited. ■ Trademarks SOFTUNE is a trademark of Fujitsu Microelectronics Limited. Windows is a registered trademark of Microsoft Corporation in the USA and/or other countries. UNIX is a registered trademark that X/Open Co., Ltd. has licensed in the United States and other countries. The company names and brand names herein are the trademarks or registered trademarks of their respective owners. ■ Structure of This Manual This manual consists of 10 chapters and an Appendix: CHAPTER 1 SOFTUNE C/C++ COMPILER This chapter outlines the C/C++ compiler. CHAPTER 2 SETTING ENVIRONMENT VARIABLES IN SYSTEM BEFORE STARTING This chapter describes environment variables in the system used to run the C/C++ compiler. (For information on setting variables, refer to the manual for the respective operating system.) CHAPTER 3 C/C++ COMPILER OPERATION This chapter describes the command function specifications. CHAPTER 4 fcc911s COMMAND OBJECT PROGRAM STRUCTURE This chapter explains about the information necessary for program execution. CHAPTER 5 EXTENDED LANGUAGE SPECIFICATIONS This chapter explains about the extended language specifications supported by the compiler. The limitations on compiler translation are also described in this chapter. i CHAPTER 6 EXECUTION ENVIRONMENT This chapter describes the user program execution procedure to be performed in an environment where no operating system exists. CHAPTER 7 LIBRARY OVERVIEW This chapter outlines the C libraries by describing the organization of files furnished by the libraries and the relationship to the system into which the libraries are incorporated. CHAPTER 8 LIBRARY INCORPORATION This chapter describes the processes and functions for preparing for useing library. CHAPTER 9 COMPILER-DEPENDENT SPECIFICATIONS This chapter describes the specifications that vary with the compiler. Descriptions are related to JIS standard that are created based on ANSI standard. CHAPTER 10 SIMULATOR DEBUGGER LOW-LEVEL FUNCTION LIBRARY This chapter describes how to use the simulator debugger low-level function library. APPENDIX The appendix gives a list of types, macros, functions and variables provided by the libraries and describes the operations specific to the libraries (The APPENDIX A and APPENDIX B). The list of the error message is described (The APPENDIX C). The list of the reserved pragma directive is described (The APPENDIX D). ■ Grammar Books For C or C++ language syntax and standard library functions, refer to commercially available standard compliant reference books. ii ■ Reference Books THE C PROGRAMMING LANGUAGE (Brian W.Kernighan & Dennis M.Ritchie) Japanese edition entitled Programming Language C UNIX Type Programming Method and Procedure (Translated by Haruhisa Ishida; Kyoritsu Shuppan) American National Standard for Information Systems - Programming Language C, X3.159-1989 UNIX system User’s Manual system V (Western Electric Company, Incorporated) UNIX system V Programmer Reference Manual (AT&T Bell Laboratories) User Reference Manual UTS/5 Release 0.1 (Western Electric Company, Incorporated and Amdahl Corporation) UTS Command Reference Manual UTS/5 Release 0.1 (Western Electric Company, Incorporated and Amdahl Corporation) The Annotated Reference Manual (Addison-Wesley Publishing Company, Inc.) The Programing Language C++ Third Edition (Addison-Wesley Publishing Company, Inc.) ISO/IEC 14882:1998 Programming languages -- C++ ISO/IEC 9899:1999 Programming languages -- C iii • The contents of this document are subject to change without notice. Customers are advised to consult with sales representatives before ordering. • The information, such as descriptions of function and application circuit examples, in this document are presented solely for the purpose of reference to show examples of operations and uses of FUJITSU MICROELECTRONICS device; FUJITSU MICROELECTRONICS does not warrant proper operation of the device with respect to use based on such information. When you develop equipment incorporating the device based on such information, you must assume any responsibility arising out of such use of the information. FUJITSU MICROELECTRONICS assumes no liability for any damages whatsoever arising out of the use of the information. • Any information in this document, including descriptions of function and schematic diagrams, shall not be construed as license of the use or exercise of any intellectual property right, such as patent right or copyright, or any other right of FUJITSU MICROELECTRONICS or any third party or does FUJITSU MICROELECTRONICS warrant non-infringement of any third-party's intellectual property right or other right by using such information. FUJITSU MICROELECTRONICS assumes no liability for any infringement of the intellectual property rights or other rights of third parties which would result from the use of information contained herein. • The products described in this document are designed, developed and manufactured as contemplated for general use, including without limitation, ordinary industrial use, general office use, personal use, and household use, but are not designed, developed and manufactured as contemplated (1) for use accompanying fatal risks or dangers that, unless extremely high safety is secured, could have a serious effect to the public, and could lead directly to death, personal injury, severe physical damage or other loss (i.e., nuclear reaction control in nuclear facility, aircraft flight control, air traffic control, mass transport control, medical life support system, missile launch control in weapon system), or (2) for use requiring extremely high reliability (i.e., submersible repeater and artificial satellite). Please note that FUJITSU MICROELECTRONICS will not be liable against you and/or any third party for any claims or damages arising in connection with above-mentioned uses of the products. • Any semiconductor devices have an inherent chance of failure. You must protect against injury, damage or loss from such failures by incorporating safety design measures into your facility and equipment such as redundancy, fire protection, and prevention of over-current levels and other abnormal operating conditions. • Exportation/release of any products described in this document may require necessary procedures in accordance with the regulations of the Foreign Exchange and Foreign Trade Control Law of Japan and/or US export control laws. • The company names and brand names herein are the trademarks or registered trademarks of their respective owners. Copyright© 2003-2009, FUJITSU MICROELECTRONICS LIMITED All rights reserved. iv CONTENTS CHAPTER 1 SOFTUNE C/C++ COMPILER ..................................................................... 1 1.1 C/C++ Compiler Functions ................................................................................................................. 2 1.2 Basic Process of Commands .............................................................................................................. 3 1.3 C/C++ Compiler Basic Functions ........................................................................................................ 4 CHAPTER 2 SETTING ENVIRONMENT VARIABLES IN SYSTEM BEFORE STARTING .................................................................................................... 7 2.1 FETOOL ............................................................................................................................................. 8 2.2 LIB911 ................................................................................................................................................ 9 2.3 OPT911 ............................................................................................................................................ 10 2.4 INC911 .............................................................................................................................................. 11 2.5 TMP .................................................................................................................................................. 12 2.6 FELANG ........................................................................................................................................... 13 CHAPTER 3 C/C++ COMPILER OPERATION ............................................................... 15 3.1 Command Line ................................................................................................................................. 16 3.2 Command Operands .......................................................................................................................
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages428 Page
-
File Size-