Appendix D Notes When Little Endian Area Is Used - Fujitsu MB91260B Series Hardware Manual

32-bit microcontroller
Table of Contents

Advertisement

APPENDIX D Notes When Little Endian Area Is Used

This appendix explains operating suggestions for the following items when using the
little endian area.
• C compiler
• Assembler
• Linker
• Debugger
■ C Compiler (fcc911)
Please note that operations cannot be guaranteed, if the following operations are performed to the little
endian area when programming by C language.
- Arrangement of variable with initial value
- Assignment of structure
- Operations other than character type array that uses character string operation function
- Specification of -K lib option when using character string operation function
- Use of double type and long double type
- Arrangement of stack in little endian area
Arrangement of variable with initial value
The variable with an initial value cannot be arranged in the little endian area.
The compiler does not have a function to generate an initial value of the little endian. The variable can be
arranged in the little endian area but an initial value cannot be set to it.
Please run a process to set an initial value at the head of the program.
[Example] When setting an initial value to the variable little_data of the little endian area.
extern int little_data;
void little_init(void) {
little_data = initial value;
}
void main(void) {
little_init();
}
...
APPENDIX D Notes When Little Endian Area Is Used
453

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr60lite

Table of Contents