delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/04/04/11:46:34

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=VCsE96aIsNcMSBX1DCZwQ4ASuHD1UjzDWZ1aB2EfVWo
um/H7ta98Jv/hRcePA5wWWTomph6iYXvoIdzAxN/prvi2DRVe/ZlcIgrE4/m7YG9
MPLOp1oyoSFNevsLAu/gOqGtRFGS9FtVFMwd4R3354SPBqRg5nfADoiFqeM/hWYU
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=flYo8fOp9esaG/yJoUgCXzod5HI=; b=mNHEAuQ/SkItF2juC
fxlVkrQWvzu4N7/htek2hns+6AqS0SpZcoybTnem4cj7djLwTUSPjGz7/gIFmwIC
3wRhTU7D/sNcKrqfaskfaHe5HGRQnCyuBWjGsWUgrRadds9Rmd/QHN2Zy7TEgkg+
UXnsFX7NCDkNNQtfDrkHgKf4oE=
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
X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=BAYES_00,KHOP_THREADED autolearn=ham version=3.3.1
Message-ID: <515DA044.6070706@farance.com>
Date: Thu, 04 Apr 2013 11:46:12 -0400
From: Frank Farance <frank AT farance DOT com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: But it is cygwin related.
References: <20130404170527 DOT 3708 AT binki> <20130404085538 DOT GE25170 AT calimero DOT vinschen DOT de> <515D78B1 DOT 60209 AT farance DOT com> <CA+sc5mmQ9rJ85rvDbMTvp_+vCx6CQPava5N3-8yxd9soh6zxQg AT mail DOT gmail DOT com>
In-Reply-To: <CA+sc5mmQ9rJ85rvDbMTvp_+vCx6CQPava5N3-8yxd9soh6zxQg@mail.gmail.com>

On 2013-04-04 09:15, Earnie Boyd wrote:
> On Thu, Apr 4, 2013 at 8:57 AM, Frank Farance wrote:
>>
>> I haven't posted in a long while, but the question seems reasonable and
>> relevant to cygwin.  If one were writing assembler code to be compatible
>> with cygwin, one would need the answer to the question originally posed.  I
>> don't see this as a question about win32 APIs (which might be answered by
>> your link above), it is a compatibility question ... certainly, we would
>> have thought about it this way when writing a mix of C and assembler code 40
>> years ago on UNIX systems.
>>
>
> The OP was related to "How to program".  From cygwin.com/lists.html we have

Earnie-

Thanks for the response.  Let me try to say it in a different way that, I hope, makes it a bit clearer.  Let's say there are two programs "A" and "B".  When I run "A", it performs some calculations and then "prints" the result.  For example:

main()
{
	int i,sum;

	sum = 0;
	for ( i = 0 ; i < 10000 ; i++ )
		sum += i;
	printf("sum is %d\n",sum);
	exit(0);
}

So running A produces (say):

$ A
sum is 49995000
$

Now, for whatever reason, a different set of calculations are needed and assembler is the best software engineering solution (for whatever reason).  As a programmer, I can think of several ways that will cause a visual image to appear on the screen with the result, but some of them will not be compatible with B with the pipeline:

# Note: B has similar functionality as the "wc" program
$ A | B

In early UNIX days, this kind of compatibility among assembler and C code was well understood.  However in a Windows environment, this might not be obvious, and given all the experience and knowledge gained over the years, it would be helpful to transform this tacit knowledge into explicit knowledge (for sharing with others, ya know), rather than much trial and error via experimentation.

So when I google:

cygwin compatibility with assembler code

The mail archives point me to my *own* message above that you have responded to (ha!).  If I've missed an article that answers the question above (without using "printf" and the other baggage), then please let me know.  Thanks.

-FF

-- 
______________________________________________________________________
Frank Farance, Farance Inc.    T: +1 212 486 4700   M: +1 917 751 2900
mailto:frank AT farance DOT com       http://farance.com
Standards/Products/Services for Information/Communication Technologies

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