Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com From: "Krzysztof Duleba" Subject: Assembler Date: Mon, 16 Feb 2004 21:45:40 +0100 Lines: 34 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org X-Gmane-NNTP-Posting-Host: fw-gw-atm.mimuw.edu.pl X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 Hello I wanted to test some of my linux assembler code on my Windows-Cygwin box. Is it possible at all? Here you have a hello world: section .data t db 'Hello world',0 len equ 13 section .text global _start _start: mov edx,len mov ecx,t mov ebx,1 mov eax,4 int 0x80 mov ebx,0 mov eax,1 int 0x80 How should I compile it? Doing it the way I used to gives me an error: bash-2.05b$ nasm -f elf hello.asm bash-2.05b$ ld hello.o -o hello.exe ld: warning: cannot find entry symbol _mainCRTStartup; defaulting to 00401000 An .exe file is created, but is corrupted. Regards Krzysztof Duleba -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/