SW006012 Microchip Technology, SW006012 Datasheet - Page 139

C COMPILER FOR DSPIC30F FAMILY

SW006012

Manufacturer Part Number
SW006012
Description
C COMPILER FOR DSPIC30F FAMILY
Manufacturer
Microchip Technology
Type
MPLAB® C30 Compilerr
Series
PIC24 & DsPICr
Datasheets

Specifications of SW006012

Supported Families
PIC24, DsPIC30F And DsPIC33F
Core Architecture
PIC, DsPIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Tool Type
Compiler
Processor Series
PIC24, dsPIC
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
dsPIC30F
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
B.1
© 2007 Microchip Technology Inc.
INTRODUCTION
Appendix B. MPLAB C30 Built-in Functions
This appendix describes the MPLAB C30 built-in functions that are specific to 16-bit
devices.
Built-in functions give the C programmer access to assembler operators or machine
instructions that are currently only accessible using inline assembly, but are sufficiently
useful that they are applicable to a broad range of applications. Built-in functions are
coded in C source files syntactically like function calls, but they are compiled to
assembly code that directly implements the function, and do not involve function calls
or library routines.
There are a number of reasons why providing built-in functions is preferable to
requiring programmers to use inline assembly. They include the following:
1. Providing built-in functions for specific purposes simplifies coding.
2. Certain optimizations are disabled when inline assembly is used. This is not the
3. For machine instructions that use dedicated registers, coding inline assembly
This chapter is organized as follows:
Built-In Function List
__builtin_addab
__builtin_add
__builtin_btg
__builtin_clr
__builtin_clr_prefetch
__builtin_divmodsd
__builtin_divmodud
__builtin_divsd
__builtin_divud
__builtin_dmaoffset
__builtin_ed
__builtin_edac
__builtin_fbcl
__builtin_lac
__builtin_mac
__builtin_modsd
__builtin_modud
__builtin_movsac
case for built-in functions.
while avoiding register allocation errors can require considerable care. The
built-in functions make this process simpler as you do not need to be concerned
with the particular register requirements for each individual machine instruction.
__builtin_mpy
__builtin_mpyn
__builtin_msc
__builtin_mulss
__builtin_mulsu
__builtin_mulus
__builtin_muluu
__builtin_nop
__builtin_psvpage
__builtin_psvoffset
__builtin_readsfr
__builtin_return_address
__builtin_sac
__builtin_sacr
__builtin_sftac
__builtin_subab
__builtin_tblpage
__builtin_tbloffset
MPLAB
__builtin_tblrdh
__builtin_tblrdl
__builtin_tblwth
__builtin_tblwtl
__builtin_write_NVM
__builtin_write_OSCCONL
__builtin_write_OSCCONH
®
C30 USER’S
DS51284F-page 133
GUIDE

Related parts for SW006012