This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Request for an example x68 assembler portable Hello World script


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]