Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!ucsd!ucbvax!RICHTER.MIT.EDU!krowitz From: krowitz@RICHTER.MIT.EDU (David Krowitz) Newsgroups: comp.sys.apollo Subject: Re: Inlib'ing on SR10.1/2 Message-ID: <9009071335.AA12934@richter.mit.edu> Date: 7 Sep 90 13:35:41 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 18 By default, the SR10 compilers produce "absolute code" (memory references that are to variables that are not on the stack are made to a fixed location rather than to a location relative to the program counter; and jump/branch instructions are made to fixed locations rather than relative to the program counter). You can produce position independent code by using the Apollo specific switch "-pic" when compiling your code. This is required for all code which is loadable at run time (ie. inlib libraries, device drivers, IOS type managers, etc). SR9.7 compilers always produced position independent code, which is supposedly slower than absolute code. We haven't seen any significant speed improvements, however. -- David Krowitz krowitz@richter.mit.edu (18.83.0.109) krowitz%richter.mit.edu@eddie.mit.edu krowitz%richter.mit.edu@mitvma.bitnet (in order of decreasing preference)