182
Section 3: Assembler
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
.extern / .external — Declare External a Referenced Symbol
Syntax
.extern
symbol [, symbol] . . .
.external
symbol [, symbol] . . .
Description
symbol
Specifies a symbol that is referenced (but not defined) in the
current file. Section names and floating-point symbols are not
allowed.
The .extern and .external directives declare the scope of the symbol
symbol to
be external. This is necessary when a locally referenced symbol is defined in
another source file. These directives are synonyms for the .xref directive.
Symbols that are referenced in a file but not defined in that file are assumed to
have external scope; therefore, these directives are not necessary (unless the
-E
flag is specified on the command line).
Examples
.extern base, init, input
.external proc1, jmp_tbl
.file — Set Name of Source File
Syntax
.file "
filename"
Description
filename
Specifies the name of either the assembler source file or the
corresponding C source file. It can be up to 14 characters in
length.
The .file directive sets the name of the source file for purposes of source-level
debugging. This directive can appear at most once per source file. It is generated
internally by the assembler if it does not appear or if it specifies a C source file
when the
-L
command line flag is used. For more information, see section
1.4.7.1 Special Symbols.
Example
.file "demo.c"