home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.acorn:10555 comp.sys.acorn.tech:1417
- Newsgroups: comp.sys.acorn,comp.sys.acorn.tech
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!newsserver.jvnc.net!yale.edu!ira.uka.de!news.belwue.de!ifi!wuerthne
- From: wuerthne@minnie.informatik.uni-stuttgart.de (Martin Wuerthner)
- Subject: Re: Monty Pythons most used sentence
- Message-ID: <1993Jan26.121930.14166@ifi.informatik.uni-stuttgart.de>
- Sender: news@informatik.uni-stuttgart.de
- Organization: Informatik, Uni Stuttgart, Germany
- References: <1k11shINNgps@info2.rus.uni-stuttgart.de>
- Date: Tue, 26 Jan 1993 12:19:30 GMT
- Lines: 42
-
- In <1k11shINNgps@info2.rus.uni-stuttgart.de> zrzs0111@helpdesk.rus.uni-stuttgart.de (Helmut Springer) writes:
-
-
- >"And now to something completely different"
-
- >Has someone build a module with a "save, easy useable, not crunshing"
- >method to request memory (for RISCOS 2.00)?
- >If you request memory with OS_Module, the memory can't given back, if a
- >other module gets loaded.
-
- OS_Module allocation should not be used for large blocks of memory.
- Additionally, it can only be used by modules, so it can't be used by
- applications unless they run as a module. In this case (i.e. module tasks)
- you may as well use application space !
-
- >If you request memory with WIMP_SlotSize, you may run into programs which
- >sits already in the memory (cause of BBC 6502 compatibility ?) and twice
- >this method has no garbage collection ...
-
- If you request memory using Wimp_SlotSize you *never* get memory which is
- already used by another application. RISC OS even has memory protection
- (i.e. you may not even access memory which is used by another application).
-
- Would you expect any program to run under RISC OS if your claims were true
- (if memory allocation was not safe) ?
-
- Application memory does not need any garbage collection as app memory is
- paged (i.e. logical memory). As these pages can be mapped to arbitrary
- physical addresses (but that's what RISC OS does for you), you do not need
- any garbage collection as there is *no* fragmentation at all. So you can
- say there is an implicit, automatic garbage collection which is absolutely
- free (it does not take up any CPU time).
-
-
- What is really annoying is that the Module Area becomes fragmented ...
-
- There is no need to complain about RISC OS aplication memory management.
- It only suffers from the lack of virtual memory ...
-
- Martin
-
-
-