From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 49837 invoked by alias); 27 Apr 2019 18:35:12 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 49668 invoked by uid 89); 27 Apr 2019 18:35:12 -0000 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 Received: from pcls5.std.com (HELO TheWorld.com) (192.74.137.145) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 27 Apr 2019 18:35:10 +0000 Received: from pcls8.std.com (pcls8.std.com [192.74.137.148]) by TheWorld.com (8.14.5/8.14.5) with ESMTP id x3RIYRSI001283; Sat, 27 Apr 2019 14:34:29 -0400 Received: from pcls8 (localhost [127.0.0.1]) by pcls8.std.com (8.14.5/8.14.5) with ESMTP id x3RIYLi1022176; Sat, 27 Apr 2019 14:34:21 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <23748.41133.822313.11282@gargle.gargle.HOWL> Date: Sat, 27 Apr 2019 18:35:00 -0000 From: bzs@TheWorld.com To: Jesse Thompson Cc: cygwin@cygwin.com Subject: Re: Request for an example x68 assembler portable Hello World script In-Reply-To: References: X-IsSubscribed: yes X-SW-Source: 2019-04/txt/msg00208.txt.bz2 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@TheWorld.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