This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: CVSUp or Modula3 boot or errno in assemble

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

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:
>> []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

--                        Red Hat, Inc.  

Want to unsubscribe from this list?
Check out:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]