20
Introduction
The
rspasm
assembler outputs several special files. The root filename for
these files can be specified with the
-o
flag.
•
<rootname>
, is the binary executable code (text section). This file
can be loaded into the RSP simulator instruction memory (IMEM)
and executed.
•
<rootname>.dat
, is the binary data section. This is usually
loaded into RSP data memory (DMEM).
•
<rootname>.lst
, is a text program listing generated by the
assembler.
•
<rootname>.sym
, is a “symbol file” used by the RSP simulator to
perform source level debugging.
•
<rootname>.dbg
, is a “symbol file” used by the
rsp2elf
utility
in order to build an ELF object that can be used with
makerom
and
the
gvd
debugger.
The RSP assembler has no provisions for linking separately-compiled
objects. Since IMEM only holds 1024 instructions and assembling is so fast,
the lack of a sophisticated linker is not a problem. Source code can be broken
up into separate files and
#include
’d to enforce modularity.
Facilities to support dynamic linking, such as code overlays, are provided by
the
buildtask
tool.
cpp
By default,
rspasm
invokes the
C
preprocessor (
/usr/bin/cc -E
,
actually) before assembly so that source code can use
#define,
#include, #ifdef,
etc.
Like other MIPS assemblers,
rspasm
defines
_LANGUAGE_ASSEMBLY
(useful for sharing header files with
C
programs).
Содержание Ultra64
Страница 2: ...2 ...
Страница 10: ...10 ...
Страница 12: ...12 Figure 6 2 buildtask Operation 137 ...
Страница 14: ...14 ...
Страница 80: ...80 Vector Unit Instructions vmadm dres_int dres_int vconst 3 vmadn dres_frac vconst vconst 0 ...
Страница 104: ...104 RSP Coprocessor 0 ...
Страница 150: ...150 Advanced Information ...
Страница 155: ...Revision 1 0 155 ...
Страница 248: ...248 Exceptions None ...
Страница 251: ...Revision 1 0 251 Exceptions None ...
Страница 254: ...254 Exceptions None ...
Страница 257: ...Revision 1 0 257 Exceptions None ...
Страница 293: ...Revision 1 0 293 Exceptions None ...
Страница 316: ...316 Exceptions None ...