SW500011 Microchip Technology, SW500011 Datasheet - Page 100

HI-TECH X PRO FOR PIC32

SW500011

Manufacturer Part Number
SW500011
Description
HI-TECH X PRO FOR PIC32
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC32r
Datasheet

Specifications of SW500011

No. Of User Licenses
1
Supported Families
PIC32
Core Architecture
PIC
Supported Hosts
Windows XP, Vista, Linux, Mac OS X
Software Edition
Professional
Kit Contents
Software And Docs
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC32 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
032
778-1007
778-1007
Preprocessing
3.11.4 Pragma Directives
There are certain compile-time directives that can be used to modify the behaviour of the compiler.
These are implemented through the use of the ANSI standard #pragma facility. The format of a
pragma is:
where keyword is one of a set of keywords, some of which are followed by certain options.
A list of the keywords is given in Table 3.8. Those keywords not discussed elsewhere are detailed
below.
3.11.4.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.11.4.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
100
jis
nojis
printf_check
regsused
switch
warning
Directive
#pragma keyword options
Enable JIS character handling in
strings
Disable JIS character handling (de-
fault)
Enable printf-style format string
checking
Specify registers which are used in
an interrupt
Specify code generation for switch
statements
Control messaging parameters
Meaning
Table 3.8: Pragma directives
#pragma jis
#pragma nojis
#pragma
printf_check(printf) const
#pragma regsused r4
#pragma switch direct
#pragma warning disable
299,407
Example
C Language Features

Related parts for SW500011