Support For Big Endian - Epson S5U1C17001C Manual

Cmos 16-bit single chip microcomputer, c compiler package for s1c17 family
Hide thumbs Also See for S5U1C17001C:
Table of Contents

Advertisement

10 DEBUggEr

10.6.10 Support for Big Endian

The tools (C compiler to the linker) and libraries only support little endian. Note that the C compiler cannot create
elf files that can be loaded in big endian areas. Regarding data references, however, the debugger supports big
endian.
Method of specifying big endian (in simulator mode)
To set information about big endian areas in the debugger while in simulator mode, specify it in the map
information of a parameter file. For areas you wish to set to big endian, write B in the 5th parameter. Without
this statement, areas are assumed to be little endian. However, the S1C17 chip for which you are developing
software must be a type that supports big endian. Also note that internal ROM, RAM, and I/O cannot be set to
big endian.
For details about parameter files, see Section 10.9, "Parameter Files".
Operation of debugger commands
Memory manipulating commands (x, set, c17 fg/fh/fw, c17 mvb/mvh/mvw)
These commands perform operations and display information suitable for endian format because memory is
accessed for read and write in units of bytes, 16 bits, or 32 bits according to the type of data in each command.
load command
Swaps data suitable for endian format and writes data in units of 16 bits. For this reason, programs created by
the C compiler cannot be loaded correctly in big endian areas.
10-62
EPSOn
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
S5U1C17001C ManUal

Advertisement

Table of Contents
loading

Table of Contents