Path: chuka.playstation.co.uk!news From: Craig Graham Newsgroups: scee.yaroze.programming.codewarrior Subject: Re: SIOCONS compatibility solved Date: Mon, 09 Nov 1998 14:14:35 +0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 44 Message-ID: <3646F8CA.AA180937@hinge.mistral.co.uk> References: <3646BFA9.D7B25BD6@immd9.informatik.uni-erlangen.de> NNTP-Posting-Host: d3-s5-161-telehouse.mistral.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.05 [en] (Win95; I) Christoph Luerig wrote: > This brings me to a quite interesting extension idea, that would solve > this whole problem. The idea would be to implement a malloc routine, > that gets besides thed required memory the position where this memory > should start as an extra parameter. As a result this method would return Better is a heap manager that understands a non-contiguous memory pool(so, you would in effect call an 'extend heap' type function to add an extra chunk of memory to the heap (which would then be allocated from transparently using standard malloc/free). This is a pretty simple extension to the standard K&R malloc/free code (a bit like an extended free() to add a new block to the list). In fact, thinking about it, the facility is almost there in K&R malloc() (it calls morecore() or kmalloc() or something to get a new chunk of OS memory if it runs out, you could just implement morecore() to return the blocks you're adding to the heap. > either success or not. I know that this is absolutely ridiculous, but > the fact, that the batch file uses absolute addresses for their data to > preload and the fact that some people > insist on using this method, makes it necesarry to think about absolute > addressing problems in the program. This is very pitty to my mind, as I > think, that > the Codewarrior programming environment shields the programmer quite > effectively from these uninteresting low level details. A better solution (I keep saying) is to do a serial based fileserver. I'm sureMaurice Sibrandi could add it to Yaroze Master easily as it already does SIOCONS emulation and ARS fileserver emulation. > Christoph Luerig Craig.