i960 Processor Compiler User's Guide
7-50
7
extern) in a library file. The definition in the header file causes most
calls to the function to be inlined. If any uses of the function remain, they
refer to the single copy in the library.
NOTE. Function inlining occurs only at optimization level O1 or higher.
Inline functions are not inlined at
O0. Inlining can be enabled with
finline-functions at O1, and it occurs automatically at O2.
Controlling Names Used in Assembly Code
You can specify the name to be used in the assembler code for a C
function or variable by writing the
asm (or __asm__) keyword after the
declarator as follows:
int foo asm ("myfoo") = 2;
This specifies that the name to be used for the variable foo in the
assembler code should be
myfoo rather than the usual _foo.
On systems where an underscore is normally prepended to the name of a C
function or variable, this feature allows you to define names for the linker
that do not start with an underscore.
You cannot use
asm in this way in a function definition; but you can get
the same effect by writing a declaration for the function before its
definition and putting
asm there, like this:
extern func () asm ("FUNC");
func (x, y)
int x, y;
...