delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/18/08:48:33

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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" <krzysan AT skrzynka DOT pl>
Subject: Re: Assembler
Date: Wed, 18 Feb 2004 14:52:12 +0100
Lines: 31
Message-ID: <c0vqd1$n25$1@sea.gmane.org>
References: <AE2AA130827456459AA497E8C9D6EA00412C02 AT pauex2ku02 DOT agere DOT com> <c0ucj0$ijn$1 AT sea DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 56 DOT 0402172023000 DOT 5630 AT slinky DOT cs DOT nyu DOT edu>
Mime-Version: 1.0
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

Igor Pechtchanski wrote:

> Most of the C code on Linux doesn't use int 0x80.  It normally invokes
> user-level functions that invoke system calls.
>  Why not go the same route
> with Cygwin?  In one of the previous messages in this thread, there was an
> example of calling printf from assembly.  You should be able to make calls
> to the Cygwin emulation layer the same way.

The syntax is not up to me.

From your answers, I still don't know whether using int 0x80 in Cygwin is
impossile (directly) or not. If Nasm (I'm limited to this assembler) can't
generate proper executables that would work with Cygwin, then what should I
look for? I guess that some kind of translator that changes expressions like

mov eax, 4
int 0x80

into

call _write

(with proper arguments) has already been created. I don't know where to
start searching, though. But if not, is there any point to start such a
project? Do you think it is possible to be more or less working in, let's
say, half a year?

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019