riscv-non-isa / riscv-c-api-doc

Documentation of the RISC-V C API
https://jira.riscv.org/browse/RVG-4
Creative Commons Attribution 4.0 International
68 stars 38 forks source link

Clarify that slow misaligned accesses may be very slow #49

Closed aswaterman closed 1 year ago

aswaterman commented 1 year ago

The current description might give some people the impression that misaligned accesses are only a little bit slower than aligned ones. But the intent is for the "slow" macro to be defined when the accesses are legal, but potentially extremely slow.

By contrast, the "fast" macro should be defined when misaligned accesses are reasonably fast, even if they're a little bit slower than misaligned ones. So, the existing text for the "fast" case is fine.

This isn't really a normative change; it's a tweak to the shades of meaning in the description.