-large_variable


This option sets the maximum size of a variable to 0xffff bytes.

[Specification format]

-large_variable

 

-

Interpretation when omitted

The maximum size of a variable is set to 0x7fff bytes.

Declaration of a variable with a size larger than 0x7fff bytes will cause an error.

[Detailed description]

-

This option changes the maximum size of a variable from 0x7fff bytes to 0xffff bytes.

-

Declaration of a variable with a size larger than 0xffff bytes will cause an error.

-

When this option is specified and if the result of pointer subtraction exceeds the range of values that can be represented in signed int, the value cannot be correctly expressed in ptrdiff_t (signed int). Therefore, when this option is specified, take special care regarding the result of pointer calculation.

[Example of use]

-

To set the maximum size of a variable to 0xffff bytes, describe as:

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