C Compiler Reference Manual August 2009 - Elmicro

3y ago
49 Views
2 Downloads
2.96 MB
357 Pages
Last View : 7d ago
Last Download : 3m ago
Upload by : Harley Spears
Transcription

C CompilerReference ManualAugust 2009

This manual documents software version 4.Review the readme.txt file in the product directory for changes made since this version.Copyright 1994, 2009 Custom Computer Services, Inc.All rights reserved worldwide. No part of this work may be reproduced or copied in any form or byany means- electronic, graphic, or mechanical, including photocopying, recording, taping, orinformation retrieval systems without prior permission.

Table Of ContentsOverview . 1PCB, PCM and PCH Overview . 1Installation . 1Technical Support . 2Directories . 2File Formats . 3Invoking the Command Line Compiler . 5PCW Overview . 6Program Syntax . 17Overall Structure . 17Comment . 17Trigraph Sequences . 19Multiple Project Files . 19Multiple Compilation Units . 20Example . 22Statements . 23Statements . 23if . 24while . 25do . 25do-while. 25for . 26switch . 26return . 27goto . 27label . 27break. 28continue . 28expr. 28; . 29stmt. 29Expressions . 31Expressions . 31Operators . 31operator precedence . 33Reference Parameters . 34Variable Argument Lists . 34Default Parameters. 35Overloaded Functions . 36Data Definitions . 37Basic and Special types . 37Declarations . 41Non-RAM Data Definitions. 41Using Program Memory for Data . 43Function Definition. 45v

C Compiler Reference Manual August 2009Functional Overviews . 47I2C. 47ADC . 48Analog Comparator . 49CAN Bus . 50CCP1. 52CCP2, CCP3, CCP4, CCP5, CCP6. 53Configuration Memory . 53DAC . 54Data Eeprom . 55External Memory . 56General Purpose I/O . 57Internal LCD . 58Internal Oscillator . 59Interrupts . 60Linker . 61Low Voltage Detect . 65Power PWM . 66Program Eeprom . 67PSP . 69PMP . 70RS232 I/O . 71RTOS . 73SPI . 75Timer0 . 76Timer1 . 77Timer2 . 78Timer3 . 79Timer4 . 79Timer5 . 79USB. 80Voltage Reference . 83WDT or Watch Dog Timer . 84Pre-Processor Directives . 85PRE-PROCESSOR . 85#ASM #ENDASM . 87#BIT . 90#BUILD. 91#BYTE . 92#CASE . 93DATE . 93#DEFINE . 94#DEVICE . 95DEVICE . 97#ERROR . 97#EXPORT (options). 98FILE . 99FILENAME . 99vi

Table Of Contents#FILL ROM . 100#FUSES . 100#HEXCOMMENT . 101#ID . 101#IF exp #ELSE #ELIF #ENDIF . 102#IFDEF #IFNDEF #ELSE #ELIF . 103#IGNORE WARNINGS . 104#IMPORT (options) . 104#INCLUDE . 106#INLINE . 106#INT xxxx . 107#INT DEFAULT . 110#INT GLOBAL . 111LINE . 111#LIST . 112#LINE . 112#LOCATE . 113#MODULE . 113#NOLIST . 114#OPT . 114#ORG . 115#OCS . 116PCB . 117PCM . 117PCH . 118#PIN SELECT . 118#PRAGMA . 119#PRIORITY . 119#RESERVE . 120#ROM . 120#SEPARATE . 121#SERIALIZE . 122#TASK . 123TIME . 124#TYPE . 124#UNDEF . 126#USE DELAY . 126#USE DYNAMIC MEMORY . 127#USE FAST IO . 128#USE FIXED IO . 128#USE I2C . 129#USE RS232 . 130#USE RTOS . 133#USE SPI . 134#USE STANDARD IO . 136#USE TOUCHPAD . 136#WARNING .

The compiler will search the following directories for Include files. Directories listed on the command line Directories specified in the .PJT file The same directory as the source file . By default, the compiler files are put in C:\Program Files\PICC and the example programs and all Include files are in C:\Program Files\PICC\EXAMPLES.

Related Documents:

August 2, 2021 15 August 2, 2021 16 August 2, 2021 17 August 3, 2021 18 August 4, 2021 19 August 5, 2021 20 August 6, 2021 21 August 9, 2021 22 August 9, 2021 23 August 9, 2021 24 August 10, 2021 25 August 11, 2021 26 August 12, 2021 27 August 13, 2021 28 August 16, 2021 29 August 16, 2021 30 August 16, 2021 31

PCD Compiler Reference Manual April 2009 atof( ) atof48( ) . CCS strives to answer technical support timely and thoroughly. Technical Support is available by phone during business hours for urgent needs or if email responses are not adequate. Please call 262-522-6500 x32. 1 . PCD Compiler Reference Manual April 2009 Directories . The compiler will search the following directories for Include .

May 2010 A Non-Confidential ARM Compiler toolchain v4.1 Release 30 September 2010 B Non-Confidential Update 1 for ARM Compiler toolchain v4.1 28 January 2011 C Non-Confidential Update 2 for ARM Compiler toolchain v4.1 Patch 3 30 April 2011 C Non-Confidential Update 3 for ARM Compiler toolchain v4.1 Patch 4

Compiler Design 10 A compiler can broadly be divided into two phases based on the way they compile. Analysis Phase Known as the front-end of the compiler, the analysis phase of the compiler reads the source program, divides it into core parts, and then checks for lexical, grammar, and syntax errors.

In particular you need: Linux { Compilers either Intel Fortran Compiler versions 14 or 15 with correspond-ing Intel C Compiler or GNU’s Compiler Collection 4.9.2, both gfortran and gcc { GNU’s make, gmake, version 3.77 or 3.81 { perl, version 5.10 Cray/Linux { either Intel Fortran Compiler versions 14 or 15 with corresponding Intel C Compiler

IAR ARM compiler 6.3 and higher GNU C Compiler for ARM architecture Arm Keil C/C compiler 5.4 and higher For the ColdFire devices, the following compilers are supported: CodeWarrior for MCU, 10.1 and higher. IAR ColdFire C compiler 1.2 GNU C Compiler for ColdFire architecture The Microco

Compiler Design 10 A compiler can broadly be divided into two phases based on the way they compile. Analysis Phase Known as the front-end of the compiler, the analysis phase of the compiler reads the source program, divides it into core parts,

COMPILER DESIGN LECTURE NOTES . Department of CSE - 2 - UNIT -1 1.1 OVERVIEW OF LANGUAGE PROCESSING SYSTEM 1.2 Preprocessor A preprocessor produce input to compilers. They may perform the following functions. . 1.9 STRUCTURE OF THE COMPILER DESIGN Phases of a compiler: A compiler