home *** CD-ROM | disk | FTP | other *** search
- Path: newsserver.rrzn.uni-hannover.de!tubsibr!duening
- From: duening@ibr.cs.tu-bs.de (Lars Duening)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Dynamic loading/linking
- Date: 29 Mar 1996 14:52:53 GMT
- Organization: TU Braunschweig, Informatik (Bueltenweg), Germany
- Distribution: world
- Message-ID: <4jgtg5$67h@ra.ibr.cs.tu-bs.de>
- References: <Dp0x52.90C.0.-s@cs.vu.nl>
- Reply-To: duening@ibr.cs.tu-bs.de (Lars Duening)
- NNTP-Posting-Host: kastor.ibr.cs.tu-bs.de
-
- In article <Dp0x52.90C.0.-s@cs.vu.nl> irmen@cs.vu.nl (Irmen de Jong) writes:
- >Say I want to split my program into separate parts (because it's
- >getting too big, or because some parts are rarely used).
- >(I'm talking about my port of the python interpreter here)
- >
- >What solutions are feasible?
- >
- > [ Overlay, LoadSeg() snipped ]
- >
- >- Amiga shared library. Would be most ideal, but libraries cannot reference
- > global data. (Ok Ok they can by passing all the pointers to all the
- > global data you want to reference but in my case this is no option.
- > Way to much global data.)
-
- Do it this way. With properly 'struct'ured global data, passing
- pointers is easy (and in my experience leads to a cleaner design).
- As an added bonus, you can run several instances of your program from
- just one set of loaded executables.
- --
- Lars Duening; duening@ibr.cs.tu-bs.de
-