Hi! On Mon, Sep 17, 2012 at 04:04:44PM +0200, Oliver Schmidt wrote: > > Reading the whole directory in one step uses quite some memory. Unfortunately > > the only other idea I have is to document this bug and let the programmer > > handle it. > > Is this the final state of affairs? If yes, I'll adjust the multidemo > sample to work even on the most important cc65 targets ;-) Actually, I was waiting for comments. Maybe someone has another idea. Reading the directory in memory would mean that programs using opendir() would always include the heap module, *and* use space for the linked list, which is quite an overhead. If there is no other solution, I would prefer to just document it and let the programmer handle the problem. This way, only programs that need to open files while reading from the directory would need to build a directory list on the heap. Maybe the library could offer a wrapper module for this purpose. Regards Uz -- Ullrich von Bassewitz uz@musoftware.de ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Mon Sep 17 17:36:52 2012
This archive was generated by hypermail 2.1.8 : 2012-09-17 17:36:55 CEST