home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os9 / 1245 < prev    next >
Encoding:
Text File  |  1992-09-15  |  1.9 KB  |  47 lines

  1. Newsgroups: comp.os.os9
  2. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!haven.umd.edu!wam.umd.edu!ignatz
  3. From: ignatz@wam.umd.edu (Mark J. Sienkiewicz)
  4. Subject: Re: HELP with Module-names
  5. Message-ID: <1992Sep15.141207.13794@wam.umd.edu>
  6. Sender: usenet@wam.umd.edu (USENET News system)
  7. Nntp-Posting-Host: rac3.wam.umd.edu
  8. Organization: University of Maryland, College Park
  9. References: <obbe.716129530@galaxy> <1992Sep11.085101.6115@gserv1.dl.ac.uk> <1992@mwca.UUCP>
  10. Date: Tue, 15 Sep 1992 14:12:07 GMT
  11. Lines: 34
  12.  
  13. In article <1992@mwca.UUCP> bill@mwca.UUCP (Bill Sheppard) writes:
  14. >In <1992Sep11.085101.6115@gserv1.dl.ac.uk> gjm@gserv1.dl.ac.uk (g.j.milne) writes:
  15. >
  16. >>Have you tried using unlink to remove the program from memory? This
  17. >>should work unless the program is installed at boot time in which case
  18. >>it will not be removed.
  19. >
  20. >In his original post Obbe mentioned that he wants to run two versions of the
  21. >program simultaneously.  This would require using the appropriate linker
  22. >option ('-n' from 'cc' or 'l68') to give the second version a different name.
  23.  
  24. Another thing that works pretty well is to give it a different version
  25. number.  I think theres a linker option to do this, but I usually use
  26. something like:
  27.  
  28.     fixmod -ua=80xx
  29.  
  30. where xx is a byte that is a higher version number than whatever is in
  31. memory.  When you load the new module, the old module is no longer accessible
  32. by name, but processes that are running already can still use the old
  33. one.  I've never seen a limit on how many versions of a module you can
  34. load (except how much memory you have).
  35.  
  36. The 80 in the 80xx is "attributes".  You can find the right value for
  37. your program by running ident on it and seeing the At/Rev field.
  38.  
  39. Note that this is ** NOT ** related to the edition number, which doesn't
  40. appear to do anything at all.  (for the computer, anyway :)
  41.  
  42. This is one of the features I like of OS9.  It is a convienient way to
  43. replace even ROM-based modules while the system is running.
  44.  
  45. Mark S.
  46.  
  47.