Download WicePlus C Compiler
Transcript
Contents 3.3 Create a New Project ...............................................................................................19 3.4 Add and Remove Source Files from/to Project.......................................................20 3.4.1 Create and Add a New Source File for the Project .......................................20 3.4.2 Add Existing Source Files to the New Project..............................................22 3.4.3 Deleting Source Files from Project...............................................................23 3.5 Editing Source Files from Folder/Project................................................................24 3.5.1 Open Source File from Folder for Editing....................................................24 3.5.2 Open Source File from Project for Editing ...................................................24 3.6 Compile the Project .................................................................................................25 3.7 Dumping the Compiled Program to ICE .................................................................26 3.8 Debugging a Project ................................................................................................26 3.8.1 Breakpoints Setup .........................................................................................27 4 C Fundamental Elements 28 4.1 Comments ................................................................................................................28 4.2 Reserved Words .......................................................................................................29 4.3 Preprocessor Directives ...........................................................................................30 4.3.1 #include.........................................................................................................30 4.3.2 #define...........................................................................................................31 4.3.3 #if, #else, #elif, #endif ..................................................................................32 4.3.4 #ifdef, #ifndef ...............................................................................................32 4.4 Literal Constants ......................................................................................................33 4.4.1 Numeric Constant .........................................................................................33 4.4.2 Character Constant........................................................................................33 4.4.3 String Constant..............................................................................................34 4.5 Data Type .................................................................................................................35 4.6 Enumeration.............................................................................................................35 4.7 Structure and Union .................................................................................................36 4.8 Array ........................................................................................................................37 4.9 Pointer ......................................................................................................................37 4.10 Operators ................................................................................................................38 4.10.1 Types of Supported Operators ...................................................................38 4.10.2 Prefix of Operators.....................................................................................39 4.11 If-else Statement.....................................................................................................40 4.12 Switch Statement....................................................................................................40 4.13 While Statement .....................................................................................................41 4.14 Do-while Statement................................................................................................41 4.15 For Statement .........................................................................................................42 4.16 Break and Continue Statements .............................................................................42 4.17 Goto Statement.......................................................................................................43 4.18 Function..................................................................................................................43 4.18.1 Function Prototype.....................................................................................43 2 • Contents WicePlus C Compiler User’s Guide