Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!uwvax!astroatc!nicmad!madnix!perry From: perry@madnix.UUCP (Perry Kivolowitz) Newsgroups: comp.sys.amiga Subject: Re: shared/loaded libraries vs. resident Message-ID: <618@madnix.UUCP> Date: 22 Apr 89 10:02:47 GMT References: <13492@louie.udel.EDU> <8635@polya.Stanford.EDU> Reply-To: perry@madnix.UUCP (Perry Kivolowitz) Organization: ASDG Incorporated Lines: 37 In article <8635@polya.Stanford.EDU> gilham@polya.Stanford.EDU (Fred Gilham) writes: >The thing that concerns me about this is the performance hit. I read >somewhere that the cost of a library call is about 100us. You really Discounting the overhead of parameter passing a library call which in C would like like so: Result = LibFoo(); will be translated into: move.l _FooLibBase,A6 jsr LibFoosOffset(A6) the next instruction to be executed would be: jmp ToTheActualLibFooCode and then... TheActualLibFooInstructions.... So...the overhead of a library call (irrespective of parameter passing which would have to be accomplished if you were calling a function or library) is quite low. ----- Can anyone take the strain? Imagine...a non-commercial message from pk. Next he'll be writing public domain software again. -- Perry Kivolowitz, ASDG Inc. ARPA: madnix!perry@cs.wisc.edu {uunet|ncoast}!marque! UUCP: {harvard|rutgers|ucbvax}!uwvax!astroatc!nicmad!madnix!perry CIS: 76004,1765 (what was that about ``giggling teenagers''?)