SW500010 Microchip Technology, SW500010 Datasheet - Page 109

HI-TECH C PRO FOR PIC10/12/16

SW500010

Manufacturer Part Number
SW500010
Description
HI-TECH C PRO FOR PIC10/12/16
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC10/12/16r
Datasheets

Specifications of SW500010

Supported Families
PIC10, PIC12, PIC16
Core Architecture
PIC
Software Edition
Professional
Kit Contents
Software And Docs
Mcu Supported Families
PIC10/12/16
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC10, PIC12, PIC14, PIC16, PIC16E
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
019P
778-1006
778-1006
C Language Features
3.11.3.2 The #pragma jis and nojis Directives
If your code includes strings with two-byte characters in the JIS encoding for Japanese and other
national characters, the #pragma jis directive will enable proper handling of these characters,
specifically 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.3.3 The #pragma pack Directive
Some MCUs requires word accesses to be aligned on word boundaries. Consequently the compiler
will align all word or larger quantities onto a word boundary, including structure members. This can
lead to “holes” in structures, where a member has been aligned onto the next word boundary.
prevent any padding or alignment within structures. Use this directive with caution - in general if you
must access data that is not aligned on a word boundary you should do so by extracting individual
bytes and re-assembling the data. This will result in portable code. Note that this directive must not
appear before any system header file, as these must be consistent with the libraries supplied.
objects. This pragma will have no effect when used.
inline
jis
nojis
pack
printf_check
regsused
switch
warning
This behaviour can be altered with this directive. Use of the directive #pragma pack 1 will
PICs can only perform byte accesses to memory and so do not require any alignment of memory
Directive
Specify function as inline
Enable JIS character handling in
strings
Disable JIS character handling (de-
fault)
Specify structure packing
Enable printf-style format string
checking
Specify registers used by function
Specify code generation for switch
statements
Control messaging parameters
Table 3.9: Pragma directives
Meaning
#pragma inline(fabs)
#pragma jis
#pragma nojis
#pragma pack 1
#pragma
printf_check(printf)
const
#pragma regsused
wreg,fsr
#pragma switch direct
#pragma warning disable
299,407
Example
Preprocessing
109

Related parts for SW500010