This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: The same assembly code but different result on cygwin and Centos


matthew chao wrote, On 26.4.2011 4:52:
> The code below assigns an integer number 20 to %ebx,  which  can be
> CORRECTLY assembled on both cygwin and CentOS,
> 
> ###code begin###
> .section .data
> items:
> .long  20
> 
> .section .text
> .globl _start
> _start:
>   movl $0,%edi
>   movl items(,%edi,4),%eax
>   movl %eax,%ebx
> 
>   movl $1,%eax
>   int $0x80
>[...]
Cygwin is Linux emulation DLL, it runs on top of Win32 API. It does not
emulate Linux' syscalls; it cannot emulate that.

-- 
VH

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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