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 sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Tue, 24 Apr 2001 20:34:41 -0400 From: Christopher Faylor To: Cygwin Users List Subject: Re: CVSUp or Modula3 boot or errno in assemble Message-ID: <20010424203441.B22034@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: Cygwin Users List References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: ; from tag@ibis.odessa.ua on Wed, Apr 25, 2001 at 03:22:26AM +0300 On Wed, Apr 25, 2001 at 03:22:26AM +0300, Andrew G. Tereschenko wrote: >As for C/C++ i can understand that define can overcome >incompartibility - but that to do with code like this one ? > > leal -1040(%ebp),%edx > movl %edx,-8(%ebp) > .stabd 68,0,104 > .stabd 68,0,110 > cmpl $0,-12(%ebp) > jg L35 > .stabd 68,0,111 > cmpl $22,_errno <-- FAULT HERE > jne L36 > .stabd 68,0,112 > xorl %eax,%eax > jmp L34 > .align 4,0x90 What you do is type "info gcc" and look for the discussion on asm. In particular, you need to study how to use input and output operands. The heading in the gcc info file is: Assembler Instructions with C Expression Operands cgf -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple