asm definition

   
asm definition Inline assembler definition

  block-decl  :=  asm-defn   asm-defn  ::= asm (  string-literal  ) ; 

figs/acorn.gif

The asm definition is implementation-defined. Typically, the string-literal contains assembler instructions. Some compilers extend the asm syntax to make it easier to write larger blocks of assembler code.

Example

  asm  ("mov 4, %eax"); // GNU on Intel IA32  asm  ("mov eax, 4");  // Borland on Intel IA32 

See Also

declaration

   


C++ in a Nutshell
C++ in a Nutshell
ISBN: 059600298X
EAN: 2147483647
Year: 2005
Pages: 270
Authors: Ray Lischner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net