17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table of Contents<br />

Overview .................................................................................................................................... 1<br />

C <strong>Compiler</strong> .............................................................................................................................. 1<br />

<strong>PCB</strong>, <strong>PCM</strong> and <strong>PCH</strong> Overview ................................................................................................ 1<br />

Installation ............................................................................................................................... 2<br />

Technical Support ................................................................................................................... 2<br />

Directories ............................................................................................................................... 3<br />

File Formats ............................................................................................................................ 3<br />

Invoking the Command Line <strong>Compiler</strong> ..................................................................................... 4<br />

PCW Overview ........................................................................................................................ 6<br />

Menu ....................................................................................................................................... 7<br />

Editor Tabs.............................................................................................................................. 8<br />

Slide Out Windows .................................................................................................................. 8<br />

Editor ...................................................................................................................................... 8<br />

Debugging Windows ............................................................................................................... 9<br />

Status Bar ............................................................................................................................... 9<br />

Output Messages ...................................................................................................................10<br />

Program Syntax ........................................................................................................................11<br />

Overall Structure ....................................................................................................................11<br />

Comment ...............................................................................................................................11<br />

Trigraph Sequences ...............................................................................................................12<br />

Multiple Project Files ..............................................................................................................13<br />

Multiple Compilation Units ......................................................................................................14<br />

Example .................................................................................................................................14<br />

Statements ................................................................................................................................15<br />

Statements .............................................................................................................................15<br />

if .............................................................................................................................................16<br />

while.......................................................................................................................................16<br />

do-while .................................................................................................................................17<br />

for ..........................................................................................................................................17<br />

switch .....................................................................................................................................18<br />

return .....................................................................................................................................18<br />

goto ........................................................................................................................................19<br />

label .......................................................................................................................................19<br />

break ......................................................................................................................................19<br />

continue .................................................................................................................................20<br />

expr ........................................................................................................................................20<br />

; ..............................................................................................................................................21<br />

stmt ........................................................................................................................................21<br />

Expressions ..............................................................................................................................23<br />

Constants ...............................................................................................................................23<br />

Identifiers ...............................................................................................................................24<br />

Operators ...............................................................................................................................24<br />

Operator Precedence .............................................................................................................25<br />

Data Definitions .........................................................................................................................27<br />

Data Definitions ......................................................................................................................27<br />

Declarations ...........................................................................................................................27<br />

Type Specifiers ......................................................................................................................28<br />

Type Qualifiers .......................................................................................................................29<br />

iii

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!