cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/16/04:52:44

Message-ID: <8D53104ECD0CD211AF4000A0C9D60AE3014ECA1A@probe-2.acclaim-euro.net>
From: Shawn Hargreaves <ShawnH AT Probe DOT co DOT uk>
To: djgpp AT delorie DOT com
Subject: Re: Marker
Date: Fri, 16 Jul 1999 09:53:25 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.0.1460.8)
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019