This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: The same assembly code but different result on cygwin and Centos
- From: VÃclav Haisman <v dot haisman at sh dot cvut dot cz>
- To: cygwin at cygwin dot com
- Date: Tue, 26 Apr 2011 06:46:06 +0200
- Subject: Re: The same assembly code but different result on cygwin and Centos
- References: <BANLkTikQXxpBLcHGPKWonACr=RO0dynMiA@mail.gmail.com>
- Reply-to: cygwin at cygwin dot com
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