toy far memory support for MSXDOS2#2517
Conversation
|
Thanks a lot. I shall tinker (maybe a lot!) |
|
I hope so! :-D |
|
I think something like this (untested) sorts out the low-level primitives - assuming that the banks have been setup (eg by the loader) in crt0. Should be a speed improvement on your implementation. Malloc() and friends themselves could be written in C, start off with a 16k heap and extend as necessary, just making sure the banks used for the pool are adjacent (so that pointer addresses in the pool are a continuous range even if the actual hardware segments aren't). Doing it that way would allow an allocation > 64k. E Each free block has a header: And allocated block has: Getting ahead of myself though, I'll test out my variants and see how they work. With primitives looking like: |
|
That's interesting. I look forward to know how it will proceed :-) |

No description provided.