SW500009 Microchip Technology, SW500009 Datasheet - Page 87

HI-TECH FOR DSPIC/PIC24

SW500009

Manufacturer Part Number
SW500009
Description
HI-TECH FOR DSPIC/PIC24
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC24 & DsPICr
Datasheet

Specifications of SW500009

Supported Families
PIC24
Core Architecture
PIC, DsPIC
Software Edition
Standard
Kit Contents
Software And Docs
Tool Type
Compiler
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
DSPIC3X/PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
025
778-1003
778-1003
C Language Features
3.12.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 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.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
psect
regsused
switch
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
Rename compiler-defined psect
Specify additional registers to save
when interrupt context switching
Specify code generation for switch
statements
Meaning
Table 3.9: Pragma directives
#pragma inline(fabs)
#pragma jis
#pragma nojis
#pragma pack 1
#pragma
printf_check(printf) const
#pragma psect text=mytext
#pragma regsused w,fsr
#pragma switch direct
Example
Preprocessing
73

Related parts for SW500009