On Mon, 28 Mar 2005 22:48:28 -0800 (PST), Ankit Jain
<[EMAIL PROTECTED]> wrote:
> can anybody tell me when we write like this while
> writing asm construct then what does underscore mean?
> 
> __asm__("construct")

Underscores in those contexts usually represent a lanugage extension
and are used to make clear that this contruct may not be part of the
language standard, although a lot of other C compiler may implement
it. GNU C knows about a lot of other extensions like
__attribute__((always_inline)) that is used for function inlining.

> does it have any connection wit volatile?

Yes, it has. It prevents the compiler from modifying the inline asm
code, like reordering of statements and the like. This makes sure,
your code is handled by the compiler as is, so you will be using
__volatile__ most of the time.
 
Kind Regards

    \Steve

--

Steve Graegert <[EMAIL PROTECTED]> // Anyone who considers arithmetical
Software Consultant {C/C++ && .NET} // methods of producing random digits
Mobile: +49 (176)  21 24 88 69     //   is, of course, in a state of sin.
 Voice: +49 (9131) 71 26 40 9     //           -- JOHN VON NEUMANN (1951)
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" 
in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to