i960 Processor Compiler User's Guide
3-22
3
NOTE. When this option is in effect, if your program contains in-line
assembly-language (
asm) statements, the compiler treats the statement as
a regular function call and produces code for the call. For example, if
your program contains the following line:
asm("flushreg");
The compiler produces the following code:
callj _asm
LFC0.$:
asciz "flushreg"
...
The linker may then generate an error for an undefined extern for the
_asm call.
To use
asm statements and functions with the a option, use the __asm
keyword.
Specifying the
a (ANSI) option can override the w (Diagnostic-level)
option, as follows:
-a -w2 has the same effect as -a -w1; that is, errors and
major warnings appear.
-a -w1 errors and major warnings appear.
-a -w0 errors and all warnings appear.
Example
The following example causes the compiler to issue an error message
when it encounters a non-standard C construct. Because of the
c (Create-
object) option, the compiler stops after creating an object file:
ic960 -c -a proto.c