# riscv: progress toward arrays · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/2cbd8e1deb88e3e23ec3ca34393b824c0d76e5b0)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 2cbd8e1deb88e3e23ec3ca34393b824c0d76e5b0

Requested commit: 2cbd8e1deb88e3e23ec3ca34393b824c0d76e5b0

Commit: 2cbd8e1deb88e3e23ec3ca34393b824c0d76e5b0

Tree: 84f20399255ade0be34839f00f881c98926bccb3

Author: David Rubin

Committer: David Rubin

## Message

```
riscv: progress toward arrays

- implement `airArrayElemVal` for arrays on the stack. This is really easy
as we can just move the offset by the bytes into the array. This only works
when the index access is comptime-known though, this won't work for runtime access.

```

## Parents

- [9b2a4582c983a4171de9ab9843d0af1d807ddbff](https://git.cafe/gitcafe/zig/commit/9b2a4582c983a4171de9ab9843d0af1d807ddbff?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/2cbd8e1deb88e3e23ec3ca34393b824c0d76e5b0?format=markdown)
