This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Request for an example x68 assembler portable Hello World script
- From: bzs at TheWorld dot com
- To: Jesse Thompson <jesset at gmail dot com>
- Cc: cygwin at cygwin dot com
- Date: Sat, 27 Apr 2019 14:34:21 -0400
- Subject: Re: Request for an example x68 assembler portable Hello World script
- References: <CA+wh7Kg4UAO+_ZBONXbJ=3Hf9Tz6LSX2DX+LQNPLYqty4wkTag@mail.gmail.com> <CA+wh7Kg+KDGN0b=-UFZ7UnX_fgHw69p_PXmdaqSrncHZsVGCbA@mail.gmail.com>
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