s5u1c17001c Epson Electronics America, Inc., s5u1c17001c Datasheet - Page 384

no-image

s5u1c17001c

Manufacturer Part Number
s5u1c17001c
Description
Cmos 16-bit Application Specific Controller
Manufacturer
Epson Electronics America, Inc.
Datasheet
8 ASSEMBLER
8.9 Precautions
• To perform assembly source level debugging with the debugger gdb, specify the --gstabs assembler option to
• Always be sure to use the xgcc compiler and/or as assembler to add debugging information (.stab directive)
• To prevent errors during linkage, be sure to write the .section directive with the .align directive to clearly
• Up to 512 characters can be used for a global symbol name and up to 32,000 global symbols can be defined.
• The assembler source, map and dump files have an upper limit of 2,047 characters per line (except for a new line
• More than one source file cannot be specified as the input file of the as assembler. An error will occur if
• The output file name specified with the -o option must be the same as that of the input source file name (except
• When the ext instructions are written directly to an assembler source to extend basic instructions, they will
• If the branch destination symbol for a relative branch instruction is located in another section, the branch
• When a file name is described twice or more in a dump file (source files with the same name (except extension
8-30
add the source information to the output object file when assembling the source file.
in the source file and do not use any other method. Also be sure not to correct the debugging information that is
output. Corrections could cause the as, ld or gdb to malfunction.
define the section boundary.
Example:
character). An error will occur if there is a line that exceeds the limit.
specified.
for the file name extension).
not be optimized even if the -mc17_ext option is specified. When creating an assembler source, use s∗ or x∗
extended instructions for data transfer, arithmetic operation, and branch if a symbol is used as the operand.
instruction will not be optimized even if the -mc17_ext option is specified.
Example: .text_A 0x00000000 :
In this example, the extended instructions for referencing or branching to a symbol between "main.o" and
"sub_X.o" will not be optimized. Therefore, new sections should not be added in the linker script file (.lds) if
they are not necessary.
and path) exist), optimization for local symbols using the dump file will not be performed. This is not applied
when the uppercase and lowercase letter configuration is different even if the file name is the same. Furthermore,
this condition does not affect optimization for global symbols using a map file.
.long
.long
{
}
.text_B 0x00C00000 :
{
}
.align 2
data1
data2
.section .rodata
__START_ text_A = . ;
sub_1.o(.text)
sub_2.o(.text)
sub_3.o(.text)
sub_4.o(.text)
__END_ text_A = . ;
__START_text_B = . ;
main.o(.text)
__END_ text_B = . ;
; ← Essential
EPSON
(C COMPILER PACKAGE FOR S1C17 FAMILY) (Ver. 1.1)
S5U1C17001C MANUAL

Related parts for s5u1c17001c