home *** CD-ROM | disk | FTP | other *** search
- Path: informatik.tu-muenchen.de!ganterth
- From: ganterth@mathematik.tu-muenchen.de (Thomas Ganter)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Library?
- Date: 08 Feb 1996 10:13:53 GMT
- Organization: Math. Institut der TU Muenchen
- Distribution: world
- Message-ID: <1996Feb8.111353@mathematik.tu-muenchen.de>
- References: <920.6611T1081T2480@Th0r.foo.bar>
- NNTP-Posting-Host: sunbulirsch5.mathematik.tu-muenchen.de
- X-newsreader: xrn 7.00
-
- In article <920.6611T1081T2480@Th0r.foo.bar>, christon (Christopher Naas) writes:
- |> When I open a shared disk library, is the entire library loaded into RAM, or
- |> just the functions used?
-
- When You open a library, how should OpenLibrary() know which functions you
- are going to access? Of course, all the library is loaded into memory.
-
- |> Is there some way I can "hold back" loading a fuction
- |> to RAM until it is actually used?
-
- No.
-
- |> I want to make quite a few small libraries,
- |> each with their own preferences setting routines. The simplest way for me to
- |> do the prefs would be to include it in the library, but since many small
- |> libraries will be loaded, and the prefs-setting only used a couple of times
- |> *ever*, I don't really want to waste 10-15k RAM for each library just for a
- |> nice GUI prefs-setting.
-
- What you could do is providing a small dummy routine for seldom used functions
- that then LoadSeg()s the according code from disk and changes the Library
- pointer to the new segment. (Needs semaphore protection, a quite hairy Expunge()
- function and the like, but possible)
-
- |> So, will I have to make little prefs programs for each
- |> library, or is there some way I can delay loading the gui stuff into memory
- |> until it is used?
-
- Depends on the work you want to have... :)
-
-
- - Thomas
-
- ------------------------------------------------------------------------------
- Thomas Ganter Student der Mathematik
- Postweg 3 email: ganterth@mathematik.tu-muenchen.de
- 83209 Prien am Chiemsee FAX : (0) 8051 - 63179
- Bavaria, Germany Phone: (0) 8051 - 61895 & 62054
- ------------------------------------------------------------------------------
- Amiga Developer (ETG 249) - A3000/14Megs/550MB HD/PicassoII
- ------------------------------------------------------------------------------
-
- Mathematicians are like Frenchmen: whenever you say something to them,
- they translate it into their own language, and at once it is something
- entirely different. J. W. v. Goethe
-
-