| delorie.com/archives/browse.cgi | search |
| 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:mime-version:content-type | |
| :content-transfer-encoding:message-id:date:from:to:cc:subject | |
| :in-reply-to:references; q=dns; s=default; b=bSeIP2QOqfwhcaKIJVj | |
| CzVrDGBVzDotXI9u+BGidH/YOrDYHhSg0tz3jyF16LEfcD0MDkZCEEbPSGAJTMZE | |
| JbuN6Dery88Z9F4qZpHyJiOdP88GmJhpvC5nQP1aCC9wqgRON8Ytx2Nptcf120qx | |
| gs3Z8zbQN4WFmftcjgj5ajQE= | |
| 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:mime-version:content-type | |
| :content-transfer-encoding:message-id:date:from:to:cc:subject | |
| :in-reply-to:references; s=default; bh=twptd0V2EBGy9yg5UnnwyFA8u | |
| mQ=; b=lWSVAfh1FJVJFW5cP+jrR0txkGgCaBvzCMiYfr0R0hB/zxPr2oHFuE+S2 | |
| UzOtZkIJsB0kv2hk4O+8eTqUAgkLAcodOCmIDLf0hZW7VO6e6dFiIUeRyBs1y5Bz | |
| D4/lrgq5HTWvWxGVF5DgFOzXxSXBVOhjSMItNyQwvJBFhlofJs= | |
| 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 |
| Authentication-Results: | sourceware.org; auth=none |
| X-Spam-SWARE-Status: | No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=learning, thru, boston, 1989 |
| X-HELO: | TheWorld.com |
| MIME-Version: | 1.0 |
| Message-ID: | <23748.41133.822313.11282@gargle.gargle.HOWL> |
| Date: | Sat, 27 Apr 2019 14:34:21 -0400 |
| From: | bzs AT TheWorld DOT com |
| To: | Jesse Thompson <jesset AT gmail DOT com> |
| Cc: | cygwin AT cygwin DOT com |
| Subject: | Re: Request for an example x68 assembler portable Hello World script |
| In-Reply-To: | <CA+wh7Kg+KDGN0b=-UFZ7UnX_fgHw69p_PXmdaqSrncHZsVGCbA@mail.gmail.com> |
| References: | <CA+wh7Kg4UAO+_ZBONXbJ=3Hf9Tz6LSX2DX+LQNPLYqty4wkTag AT mail DOT gmail DOT com> <CA+wh7Kg+KDGN0b=-UFZ7UnX_fgHw69p_PXmdaqSrncHZsVGCbA AT mail DOT gmail DOT com> |
| X-IsSubscribed: | yes |
Just two thoughts:
1. You probably know that 'cc -S foo.c' produces foo.s which is the
assembler output. Might be worthwhile examining how the experts who
wrote the C compiler handle all this. The output is usually quite
readable for someone prone to reading such things.
2. Rather than generating asm some developers generate C and run that
thru the C compiler. One advantage is you can leverage all the C code
optimization and debugging etc infrastructure and anything else you
can find on the C and ld etc man pages (e.g., PIC.)
But there's nothing wrong with learning assemblers and machine
languages. In the distant past I taught it for several years at Boston
University so, good luck!
--
-Barry Shein
Software Tool & Die | bzs AT TheWorld DOT com | http://www.TheWorld.com
Purveyors to the Trade | Voice: +1 617-STD-WRLD | 800-THE-WRLD
The World: Since 1989 | A Public Information Utility | *oo*
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |