delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/04/25/11:32:30

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Wed, 25 Apr 2001 10:52:21 -0400
From: Christopher Faylor <cygwin AT cygwin DOT com>
To: "Andrew G. Tereschenko" <tag AT ibis DOT odessa DOT ua>
Cc: cygwin AT cygwin DOT com
Subject: Re: CVSUp or Modula3 boot or errno in assemble
Message-ID: <20010425105221.C5956@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: "Andrew G. Tereschenko" <tag AT ibis DOT odessa DOT ua>,
cygwin AT cygwin DOT com
References: <20010424203441 DOT B22034 AT redhat DOT com> <OCECJNJHOHFDNOOHJFIHIEOGFOAA DOT tag AT ibis DOT odessa DOT ua>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <OCECJNJHOHFDNOOHJFIHIEOGFOAA.tag@ibis.odessa.ua>; from tag@ibis.odessa.ua on Wed, Apr 25, 2001 at 02:50:50PM +0300

Please check out the project web page for links to available information
and ports:  http://cygwin.com/ .

If you don't see what you need there, then the cygwin mailing list is
the best place to make observations or get questions answered.
Information on the mailing list is available at the project web page.

For your convenience, I've reset the Reply-To: address to point to the
cygwin mailing list.  I've also Cc'ed this reply there.

On Wed, Apr 25, 2001 at 02:50:50PM +0300, Andrew G. Tereschenko wrote:
>Thanks Christopher for fast answer,
>
>But you miss two lines:
>3. Is there any __easy__ way to get out errno error
>...
>(fixing assemble is not good idea for me)
>
>:o(
>
>I don't think that i'm capable in changing asm becouse
>i can miss some registers and program will be able to fail anytime.
>
>Is it possible to make one call to errno() and use
>this addr anywhere in program (i'm not familar with Cygwin design) ??
>Note: Modula3 compiled program (CVSup) can have fork -
>i.e. process ID can change, but compiler don't have it.
>
>> -----Original Message-----
>> From: cygwin-owner AT sources DOT redhat DOT com
>> [mailto:cygwin-owner AT sources DOT redhat DOT com]On Behalf Of Christopher Faylor
>> Sent: Wednesday, April 25, 2001 3:35 AM
>> To: Cygwin Users List
>> Subject: Re: CVSUp or Modula3 boot or errno in assemble
>>
>>
>> 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
>>
>
>=============================
>Andrew G. Tereschenko
>Software Engineer
>Integrated Banking Information Systems
>tag AT ibis DOT odessa DOT ua
>

-- 
cgf AT cygnus DOT com                        Red Hat, Inc.
http://sources.redhat.com/            http://www.redhat.com/

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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