Everything

-type_size_access_to_volatile [V3.04.00 or later]


< Compile Options / Optimize Options >

[Format]

-type_size_access_to_volatile

 

-

[Default]

A variable with volatile specified might be accessed in a different size from the size of the variable type.

[Description]

-

A variable with volatile specified is accessed in the size of the variable type.

-

This option also takes effect on the volatile specification by the -volatile option.

-

Specifying this option more than once has the same effect as specifying it once only. No warning is output in this case.

-

For semantic rules for variables with volatile specified, this option can only change the access width. Other semantic rules such as the number of accesses cannot be changed.

-

If you want to access a variable in the size of its type without this option specified, specify the __evenaccess keyword when declaring the variable.

[Remarks]

-

When this option is specified, the access size is guaranteed for 4-byte or smaller scalar types.

[Example]

3

> ccrx a.c -isa=rxv3 -type_size_access_to_volatile