-pack


This option performs packing of a structure.

[Specification format]

-pack

 

-

Interpretation when omitted

Packing of a structure is not performed.

[Detailed description]

-

This option sets 1 as the number of alignment for a structure member.

-

When this option is specified, members of a structure are not aligned according to its type, but code is generated with them packed to be aligned at a 1-byte boundary.

-

Correct operation is not guaranteed if there is a mixture of C source files with this option specified and C source files without this option specified.

-

Correct operation is not guaranteed if a structure, union, or address of those members whose alignment condition has been changed from two bytes to one byte by this option is passed as an argument of a standard library function.

-

Correct operation is not guaranteed if the address of a structure or union member whose alignment condition has been changed from two bytes to one byte by this option is passed to a pointer whose type has two bytes as the alignment condition and indirect reference to the pointer is performed.

[Example of use]

-

To perform packing of a structure, describe as:

>ccrl -pack -cpu=S2 -dev=dr5f100pj.dvf main.c