From: Matthias T. <mt...@we...> - 2008-03-23 09:09:14
|
Hi, > are there yet any ideas on how the Block commands will be done? I guess > the > biggest problem is memory as the normal 1024 byte block size would be far > to big. I've implemented some words for the I2C EEPROM with the native block sizes of the chips (around 32 or 64 bytes per block). One approach to implement full block buffers could be a virtualization. But this will be difficult since the normal memory access words have to be used to access the block buffer. A word set like b@/b! to access (virtual) block memory would certainly work, but does not help porting code from other forth's . In older forth version a word b/blk was defined to give the size of a block buffer in bytes. The value can be different for each block device (EEPROM, SD-Card etc). A total different solution would be: full block buffer sizes but only on systems that have enough memory (internal or external). All solution should provide some kind of an abstraction layer, since there are far too many different block devices available. That layer can work with native block sizes. Bye Matthias |