CompuServe Messages

#Garbage collection

    15-Jun-95 16:25:05
Fm: Werner Kazmierzak 100041,1320
To: Clay Spence 72713,2540
Clay, >> I only have the RKM manuals, so I don't know about allocPooled, etc. Pooled memory allocation has been introduced into the system software since OS 3.0 (V 39). It's part of the exec.library in ROM. To gain downwards compatibility to OS 1.3 and 2.X, C= put the code into the amiga.lib as well. The functions put in the amiga.lib will first check what OS they are running on, then jumping to ROM Code if run under OS 3.0 or better, else using the code linked in with amiga.lib. .>> Do they release memory automatically? Well, sort of. The idea with pooled memory is, not to allocate/deallocate every little chunk of memory you need. You rather preallocate a big pool of memory from the system, and let your application allocate/deallocate from that pool. If the pool runs out of space, another big pool is allocated. So you may only release the pools you got from the system when your program exits. >> Do you mean people aren't interested because they can't sell their .>> programs? Well, I don't develop programs to be directly thrown on the marketplace. I rather do my programming for special projects the customer asks for. As an example, I developed pressure vessel designing software for one client. For another customer, I did some accounting software – because all they found on the market was overpowered and complicated to use, but did't cover some simple add-ons they needed. .>> Is nobody programming for the Amiga? Sure there are people programming for the Amiga. But you can't make a life of it by doing so any more. <I hope my English wasn't too bad…> – wkc – … via AP from Hamburg, Germany