Path: utzoo!utgpu!cs.utexas.edu!s608 From: s608@cs.utexas.edu (Classroom Account) Newsgroups: alt.sources.amiga Subject: Re: Short Hello World Message-ID: <1418@saltillo.cs.utexas.edu> Date: 5 May 91 04:46:16 GMT References: <1991Apr30.213936.22878@ux1.cso.uiuc.edu> <1991May2.102554.8679@cs.umu.se> Organization: U Texas Dept of Computer Sciences, Austin TX Lines: 46 In article <1991May2.102554.8679@cs.umu.se> dvljrt@cs.umu.se (Joakim Rosqvist) writes: >Ok, assembler strikes back with this: (56 codesize, 92 executable) > >OpenLib=-408 >Output=-60 >Write=-48 > > move.l 4.w,a6 > lea dos(pc),a1 > jsr OpenLib(a6) > move.l d0,a6 > jsr Output(a6) > move.l d0,d1 > lea hello(pc),a0 > move.l a0,d2 > moveq #12,d3 > jmp write(a6) > >dos: dc 'dos.library',0 >hello: dc 'Hello World',10 REXX weighs in at 23 bytes. Here's the code: ----start---- /**/ say"Hello, world" -----end----- I wrote and debugged this in about 1 minute. And, I can run this program on any machine that has REXX (IBM mainframes, PC Clones, certain incarnations of UNIX, etc) without modification. The source code is short, there's no executable to worry about, and it's incredibly clear what it does. It just goes to show that you should use the language that is best suited for the job. Later, Logan -- =----------------Logan-Shaw---(lshaw@ccwf.cc.utexas.edu)----------------= "Trust in the Lord with all thine heart, and lean not on thine own understanding. In all thy ways acknowledge Him and he shall direct thy paths" - Proverbs 3:5-6