
User’s Manual U15556EJ1V0UM
8
CONTENTS
CHAPTER 1 GENERAL..................................................................................................................... 19
1.1
C Language and Assembly Language ............................................................................... 19
1.2
Program Development Procedure by C Compiler............................................................. 21
1.3
Basic Structure of C Source Program................................................................................ 23
1.3.1
Program format........................................................................................................................23
1.4
Reminders Before Program Development......................................................................... 26
1.5
Features of This C Compiler ............................................................................................... 28
<1>
callt
/_ _
callt
functions...............................................................................................................28
<2>
Register variables......................................................................................................................28
<3>
Using the
saddr
area.................................................................................................................29
<4>
sfr
area......................................................................................................................................29
<5>
noauto
functions .......................................................................................................................29
<6>
norec
/_ _
leaf
functions .............................................................................................................29
<7>
bit
type variables and
boolean
/_
_boolean
type variables ......................................................29
<8>
boolean1
type variables............................................................................................................29
<9>
ASM statements.........................................................................................................................29
<10> Interrupt functions......................................................................................................................29
<11> Interrupt function qualifier ..........................................................................................................29
<12> Interrupt function........................................................................................................................30
<13> CPU control instructions ............................................................................................................30
<14>
callf
/_ _
callf
function.................................................................................................................30
<15> Usage of 16 MB expansion space.............................................................................................30
<16> Location function........................................................................................................................30
<17> Absolute address access function.............................................................................................30
<18> Bit field declaration ....................................................................................................................30
<19> Function to change compiler output section name ....................................................................30
<20> Binary constant description function..........................................................................................30
<21> Module name change functions.................................................................................................30
<22> Rotate function...........................................................................................................................30
<23> Multiplication function ................................................................................................................30
<24> Division function.........................................................................................................................30
<25> Data insertion function...............................................................................................................31
<26> Interrupt handler for RTOS ........................................................................................................31
<27> Interrupt handler qualifier for RTOS...........................................................................................31
<28> Task function for RTOS .............................................................................................................31
<29> Changing function call interface.................................................................................................31
<30> Change of calculation method of offset of arrays and pointers..................................................31
<31> Pascal function (_
_pascal
).......................................................................................................31
<32>
Automatic pascal functionization of function call interface
.........................................................31
<33> Flash area allocation method.....................................................................................................31
<34> Flash area branch table.............................................................................................................31
<35> Function call function from boot area to flash area....................................................................31
<36> Firmware ROM function.............................................................................................................31
<37> Limiting
int
expansion of argument/return value........................................................................32
<38> Memory manipulation function...................................................................................................32