4 ms·
> 3) A cool generic ISA project I wish we had an ISA with non-linear, two-level memory space, so you can have non-overlapping arrays for free (well, as free as
by Joker_vD 4y ago
> 3) A cool generic ISA project
I wish we had an ISA with non-linear, two-level memory space, so you can have non-overlapping arrays for free (well, as free as virtual memory required to support that would be free): that would mean that e.g. realloc() will never have to call memmove(), range checks are inescapable since they're baked into hardware, etc.
But implementing (and using) C on such an ISA will be deeply unpleasant, so it will just die because if something doesn't run C efficiently... it won't be used.
- j16sdiz 4y agoYou still need something to identify which memory space the array is from. Unless you are talking about some form of hardware copy-on-write, this is no better than what we have today