-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
Given a register unsigned<XLEN> X[16] what should happen when someone tries to use X[25] in the behavior? This specific case might occur depending on what we end up for #94.
- This can probably be handled by backend-specific out-of-bounds checks at runtime
- Backends may allow the user to skip these tests to avoid the implied performance overheads
- If the range of the index is known during parsing these checks could be omitted
- ETISS probably won’t even give a Segfault in this case leading to undefined behavior.
- Documentation should clarify if handling out of bounds access is up to the backend-developer or should be taken care of explicitly when writing CoreDSL code.
What do you think? @eyck @AtomCrafty @wysiwyng
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation