SW500007 Microchip Technology, SW500007 Datasheet - Page 91

PICC-18 PRO

SW500007

Manufacturer Part Number
SW500007
Description
PICC-18 PRO
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

Specifications of SW500007

Supported Families
PIC18
Core Architecture
PIC
Software Edition
Professional
Kit Contents
Software And Docs
Mcu Supported Families
PIC18
Tool Function
Compiler
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
PIC18 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
015P
778-1002
778-1002
C Language Features
3.12.3.1 The #pragma jis and nojis Directives
If your code includes strings with two-byte characters in the JIS encoding for Japanese and other na-
tional characters, the #pragma jis directive will enable proper handling of these characters, specif-
ically not interpreting a backslash, \, character when it appears as the second half of a two byte
character. The nojis directive disables this special handling. JIS character handling is disabled by
default.
3.12.3.2 The #pragma printf_check Directive
Certain library functions accept a format string followed by a variable number of arguments in the
manner of printf(). Although the format string is interpreted at runtime, it can be compile-time
checked for consistency with the remaining arguments.
includes the directive #pragma printf_check(printf) const to enable this checking for printf().
You may also use this for any user-defined function that accepts printf-style format strings. The
qualifier following the function name is to allow automatic conversion of pointers in variable argu-
ment lists. The above example would cast any pointers to strings in RAM to be pointers of the type
(const char *)
interrupt_level
jis
nojis
printf_check
psect
regsused
switch
This directive enables this checking for the named function, e.g. the system header file <stdio.h>
Directive
Allow interrupt function to be
called from main-line code. See
Section 3.10.4.
Enable JIS character handling in
strings
Disable JIS character handling (de-
fault)
Enable printf-style format string
checking
Rename compiler-defined psect
Specify registers which are used in
an interrupt
Specify code generation for switch
statements
Table 3.12: Pragma directives
Meaning
#pragma inline(fabs)
#pragma jis
#pragma nojis
#pragma
printf_check(printf) const
#pragma psect text=mytext
#pragma regsused fsr0,fsr1
#pragma switch direct
Example
Preprocessing
77

Related parts for SW500007