Mail Archives: djgpp/1999/07/16/04:52:44
Andy Goth writes:
> I read that the "asm" keyword is new for C++. However, I see
> inline assembly in Allegro. Hmm. Is this a deviation
> from the standard?
Inline assembly is non-standard by definition: it is a way to
temporarily step outside whatever language you are using.
Various ANSI specs do say something about asm as a keyword
(I forget exactly what), but that is really somewhat stupid
given that what you write after the asm is so very platform
specific.
>> asm volatile("jmp 0f; .string \"Hello, world\"; 0:");
>
> Is that really jmp 0f?
It's a local label. See 'info as symbols "symbol names"'.
Shawn Hargreaves.
- Raw text -