Skip to content

Clarify handling of out-of-bounds memory access #107

Description

@PhilippvK

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions