Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com X-Authentication-Warning: hp2.xraylith.wisc.edu: khan owned process doing -bs Date: Mon, 20 Mar 2000 12:33:05 -0600 (CST) From: Mumit Khan To: Leonhard Grünschloß cc: cygwin AT sourceware DOT cygnus DOT com Subject: Re: integrated asm and vars In-Reply-To: <20000320122537.2645.qmail@hotmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by delorie.com id NAA28734 On Mon, 20 Mar 2000, Leonhard Grünschloß wrote: > My problem: I want to use the integrated assembler for some time critical > procedures. But I need to get the content of some local vars - I couldn't > find a solution for about 4 hours. I tried to use VC++ style e.g. mov eax, > [asm_var] - didn't work. I wrote an extra procedure and used "%0", "%1" to > get the parameters - didn't work. I tried to use TASM and link the object - > cygwin couldn't read it. Finally used FreePascal (based on gcc) - produced > compilable asm code but it couldn't find the reference. Then I tried to get > the address by calculating it with the help of %ebp - always got access > violation errors. I'm new to asm so I don't know what this "=&a" (var) > means, to - well to assign a var to a register it also didn't work. Is it > only for results? First read the GCC documentation on inline assembly, and then look at the excellent tutorial by Colin Plumb (URL below), and that should give you a pretty good head start. Linkname: asm tutorial [Re: More assembly compiler erorrs] URL: http://sourceware.cygnus.com/ml/cygwin/1999-08/msg00138.html Regards, Mumit -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com