4 ms·
> Need more than 64KB? Allocate two blocks. How is that compatible with an array and a simple implementation of the index operator?
by pif 3mo ago
> Need more than 64KB? Allocate two blocks.
How is that compatible with an array and a simple implementation of the index operator?
- pjc50 3mo agoIt isn't. This was a problem.
- trollbridge 3mo agoNot really. Compilers had huge pointers. They just were slower since they had to do 32 bit math.
- peterfirefly 3mo agoYou can do the equivalent of the hypothetical ADSC instruction I mentioned in another post using normal instructions. It's just that you need an uncomfortable amount.
- billpg 3mo agoI once developed for PC-GEOS, which wanted all memory in exactly 8K sized blocks. I wrote a set of C macros that presented an array-of-arrays as a single collection by using mod/divide operations on the index.