8 Assembler
This chapter describes the functions of the as assembler. For the syntax of the assembly sources, refer to
Section 4.3, "Grammar of Assembly Source".
8.1 functions
The as assembler assembles (translates) assembly source files that are delivered by the C compiler and creates
object files in the machine language. It can also deliver debugging information for purposes of symbolic debugging.
This assembler is based on the gnu assembler (as). For details about the as assembler, refer to the documents for
the gnu assembler. The documents can be acquired from the GNU mirror sites located in various places around the
world through Internet, etc.
8.2 input/Output files
Assembly
sources
file.s
Assembler
as
file.o
Object files
ld linker
8.2.1 input files
assembly source file
File format: Text file
File name:
<filename>.s
<file name.ext0>
Description: File in which a source program is described. Usually, a file delivered by the xgcc C compiler is
input there.
If source files were created that only describe basic instructions and assembler directives, they can
be input into the as assembler directly.
When built in the IDE, the <file name.ext0> file is the input file.
link map file
File format: Text file
File name:
<filename>.map
Description: File in which object mapping information is described. This file is delivered by the ld linker and
is used to optimize the code for referencing global symbols when the -mc17_ext option is
specified.
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
Link map and
dump files
including preprocessor instructions
file.map
file.dump
-mc17_ext
Object files
Figure 8.2.1 Flowchart
(Other extenders than ".s" can be used. A path can also be specified.)
EPSOn
Assembly sources
file.s
Specify the -c and
C compiler
-xassembler-with-cpp
xgcc
options
Preprocessor
cpp
Assembler
as
file.o
ld linker
8 aSSEMBlEr
8
Assemblr
8-1
Need help?
Do you have a question about the S5U1C17001C and is the answer not in the manual?