This is the mail archive of the
mailing list for the Cygwin project.
Re: CVSUp or Modula3 boot or errno in assemble
- To: "Andrew G. Tereschenko" <tag at ibis dot odessa dot ua>
- Subject: Re: CVSUp or Modula3 boot or errno in assemble
- From: Christopher Faylor <cygwin at cygwin dot com>
- Date: Wed, 25 Apr 2001 10:52:21 -0400
- Cc: cygwin at cygwin dot com
- References: <20010424203441.B22034@redhat.com> <OCECJNJHOHFDNOOHJFIHIEOGFOAA.email@example.com>
- Reply-To: cygwin at cygwin dot com
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)
>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: firstname.lastname@example.org
>> [mailto:email@example.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
>> The heading in the gcc info file is:
>> Assembler Instructions with C Expression Operands
>Andrew G. Tereschenko
>Integrated Banking Information Systems
firstname.lastname@example.org Red Hat, Inc.
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple