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