Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!think.com!cass.ma02.bull.com!mips2!bull.bull.fr!corton!mcsun!sunic!cs.umu.se!dvljrt From: dvljrt@cs.umu.se (Joakim Rosqvist) Newsgroups: comp.sys.amiga.programmer Subject: Re: Short Hello World Message-ID: <1991May23.082222.4691@cs.umu.se> Date: 23 May 91 08:22:22 GMT References: <1991May21.030058.9972@cinnet.com> <1991May22.132222.29285@cs.umu.se> <21802@cbmvax.commodore.com> Sender: news@cs.umu.se (News Administrator) Organization: Dep. of Info.Proc, Umea Univ., Sweden Lines: 31 >>Unfortunately, they are not as smart as you. They use: >> >>OldOpenLibrary: >> moveq.l #0,d0 >> jsr OpenLibrary(a6) >> rts >> >>6 bytes more than necessary! > >You think so? What happens if someone SetFunction()s OpenLibrary()? >The way that "saves" 6 bytes means that OldOpenLibrary() doesn't >go through the SetFunction(). The "wasteful" way works perfectly, >and is REQUIRED for proper system operation. > >I'd be careful who you call smart or not smart. Smart isn't knowing >how to save six bytes. Smart is knowing WHEN. > Alright, but they could at least use: OldOpenLibrary: moveq #0,d0 jmp OpenLibrary(a6) /$DR.HEX$ -------------------------------------------- Email to: dvljrt@cs.umu.se 2 Windows on the screen? Oh no, not me. I just Logout & Go.