Mail Archives: cygwin/2001/04/25/11:32:30
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 -