Sun Studio 12: C User's Guide

2.12 _ _asm Keyword

The _ _asm keyword (note the initial double-underscore) is a synonym for the asm keyword. If you use asm, rather than _ _asm, and compile in– Xc mode, the compiler issues a warning. The compiler does not issue a warning if you use _ _asm in– Xc mode. The _ _asm statement has the form:


_ _asm("string");

where string is a valid assembly language statement. The _ _asm statements must appear within function bodies.