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