delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/08/13/10:29:55

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A84234E.6040306@gmail.com>
Date: Thu, 13 Aug 2009 16:29:34 +0200
From: Javier Sedano <javier DOT sedano AT gmail DOT com>
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Unable to link
References: <4A82DC03 DOT 7040800 AT gmail DOT com> <4A82E3ED DOT 9020406 AT gmail DOT com> <a5e176f80908122305m33bb50baj38553a94e78cba74 AT mail DOT gmail DOT com> <4A8421F9 DOT 7060605 AT gmail DOT com>
In-Reply-To: <4A8421F9.7060605@gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

Hi,

Dave Korn escribió:
> 
> ... something as simple as that will assemble and work just fine on Cygwin.
> But anything much more complex is liable to run into problems.  For example,
> on Linux you use the "int 80" instruction to perform a syscall; on Cygwin, you
> just call a subroutine like any other.  The compatibility between Cygwin and
> Linux exists at the C source-code level (and above), but under the hood, in
> assembly world, it's very different.  That's why you need to recompile stuff
> on Cygwin; the actual machine code that's generated is very different.
> 

	:-(
	I suspected that once I read your first email and found the .s files.
	I do not know in detail what it does, but the whole lib deals with 
memory allocation, processes,... so I bet it is not just a matter of 
changing the name.

>   You will almost certainly need to write a windows-specific version of the .S
> files to make this work.  How complex or tricky that is I can't guess as it
> depends entirely on the complexity of the .S files you need to translate.
> Sorry not to have better news for you.
> 

	No problem. It is part of an exercice for grade students (are they 
reading this ML? Hello!), whose reference environment is Linux, so I 
need Linux anyway (since it is where they will be evaluated). So it is 
not worth the value to spend more time porting it. This code is a kind 
of support library, so I was trying to compile it under cygwin and was 
curious about why it did not compile, but we will not waste more time 
(your time, in particular) on it.
	Thank you very much for the kindly help.

Regards,

-- 
--
Javier Sedano
javier DOT sedano AT gmail DOT com

--
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

- Raw text -


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