i960 Processor Compiler User's Guide
7-38
7
#pragma section
Allows COFF or ELF section naming.
#pragma section [
string
]
string
is alphanumeric characters a-z, A-Z, 0-9.
Discussion
This pragma causes all text, data and bss sections the compiler emits to be
suffixed with
string
. For COFF the string must be three characters or
less in length. For ELF, the string can be any length.
Using
#pragma section without
string
sets the suffix back to null (the
default).
This pragma is not supported for the b.out object format.
#pragma system
Specifies a system function.
#pragma system [ [(]
function
[=
index
] [,...] [)] ]
#pragma nosystem [ [(]
function
[=
index
] [,...] [)] ]
function
specifies the system function.
index
specifies the index into the system procedure
table.
Discussion
If no function is specified, the pragma applies to all functions defined or
called following the pragma. Use
pragma system to specify a function to
be called from the system procedure table. The compiler generates a
calljx instruction for the system function call, which the linker replaces
with the following:
lda
index
, g13
calls g13