Xref: utzoo alt.sources.amiga:234 comp.sys.amiga.programmer:3389 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!sdrc!cinnet!kilian From: kilian@cinnet.com (Kilian Jacob) Newsgroups: alt.sources.amiga,comp.sys.amiga.programmer Subject: Re: Short Hello World Message-ID: <1991May8.180919.8732@cinnet.com> Date: 8 May 91 18:09:19 GMT References: <1205@cbmger.UUCP> Organization: Cincinnati Network, Cinti. OH Lines: 40 From article <1205@cbmger.UUCP>, by peterk@cbmger.UUCP (Peter Kittel GERMANY): > In article <1991May4.134045.7550@cs.umu.se> dvljrt@cs.umu.se (Joakim Rosqvist) writes: >>In article <1200@cbmger.UUCP> peterk@cbmger.UUCP (Peter Kittel GERMANY) writes: >>>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) >>> >>>Shame on you, you cheated! You do an OpenLib without a CloseLib! >>>Perhaps this explains the difference. >>> >>I did not! It's ok to close a disk-library, but DosLib is in ROM, and >>Closing it is the same as adding NOP's to the code. Anyway, with a >>closelib it will be 60/96 bytes. Still shorter! >>If you don't agree with me, reply in Amiga.programmer... > > Well, we had a lengthy discussion on this in the German sub.sys.amiga > group. We came to the conclusion that it would really be dangerous! > Because, if your Amiga runs long enough and runs such programs in a > tight loop, the use counter of the library will be increased every time. > And, after *some* (:-) time, it will wrap around to zero. And, if it > happens that you have a tight memory situation just in this moment and > exec flushes all unused libs: POOF! I admit, not an everyday scenario, > but sure possible :-). > To be exact: You'll have to call that program about 65000 times (Library.OpenCnt is a UWORD.) and then wait for a low memory situation. If you call that program 20 times a day, it'll take at least 10 years. I think my A500 would die before that happenes.. :-) > theoretically you always will succeed. But also there it was concluded > that you better use the safe way. Agreed. -- /