Date: Mon, 17 Jun 1996 08:21:58 +0200 (IST) From: Eli Zaretskii To: Leath Muller Cc: djgpp AT delorie DOT com Subject: Re: Referencing C var's in inline asm In-Reply-To: <199606162318.JAA03475@gbrmpa.gov.au> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 17 Jun 1996, Leath Muller wrote: > I am trying to write some assembly routines, and I want to do them inline, so > I can pretty much mix the C and asm a lot...how do I access C vars in a > subroutine from within the asm code? This facility is very complex and powerful and cannot be explained in a short message. It is documented in the GCC docs. To read the sections that explains this, invoke the Info browser like this: info gcc "C Extensions" "Extended Asm" (note the quotes!). This will display the first of a series of sections that deal with the inline assembly facilities of GCC which you should read.