C Compiler (Fcc911) - Fujitsu FR60 Hardware Manual

Hide thumbs Also See for FR60:
Table of Contents

Advertisement

CHAPTER 2 HANDLING THE DEVICE
2.2.1

C Compiler (fcc911)

When programming with the C language, operation will be unpredictable if the following
operations are executed for the little-endian area:
• Mapping of variables with initial values
• Structure assignment
• Manipulation of arrays other than character-type arrays using character string
operation functions
• Specification of the -K lib option when character string operation functions are being
used
• Use of the double type and long double type
• Mapping of the stack to the little-endian area
■ Mapping of Variables with Initial Values
Variables with initial values cannot be mapped to the little-endian area.
The compiler does not have a function for generating little-endian initial values. Variables can be mapped
to the little-endian area, but initial values cannot be set.
Provide processing at the beginning of the program that sets initial values.
Example:
Setting an initial value for the variable little_data in the little-endian area
38
extern int little_data;
void little_init(void) {
little_data = initial value;
}
void main(void) {
little_init( );
...
}

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb91350a series

Table of Contents