3 ms·
Most arrays do not have declared bounds, that's why a runtime check is necessary.
by WalterBright 5y ago
Most arrays do not have declared bounds, that's why a runtime check is necessary.
- rst 5y agoBounds for storage are known when it is allocated. CHERI puts those bounds into the pointers (which double in size so they can fit), and has the processor do the runtime checks at every dereference. So, same effect as the proposal you reference, AFAICS -- just without altered syntax.