Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!rutgers!cbmvax!peter From: peter@cbmvax.commodore.com (Peter Cherna) Newsgroups: comp.sys.amiga.programmer Subject: Re: Short Hello World Message-ID: <21802@cbmvax.commodore.com> Date: 22 May 91 18:49:46 GMT References: <1991May21.030058.9972@cinnet.com> <1991May22.132222.29285@cs.umu.se> Reply-To: peter@cbmvax.commodore.com (Peter Cherna) Organization: Commodore-Amiga, Inc. West Chester, PA. Lines: 26 In article <1991May22.132222.29285@cs.umu.se> dvljrt@cs.umu.se (Joakim Rosqvist) writes: >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. >Email to: dvljrt@cs.umu.se Peter -- Peter Cherna, Operating Systems Development Group, Commodore-Amiga, Inc. {uunet|rutgers}!cbmvax!peter peter@cbmvax.commodore.com My opinions do not necessarily represent the opinions of my employer. "If all you have is a hammer, everything looks like a nail."