Skip to content

Make ARCH_WIDTH byte aligned instead of bit aligned#387

Merged
romancardenas merged 1 commit intorust-embedded:masterfrom
kurtjd:arch-width-fix
Jan 13, 2026
Merged

Make ARCH_WIDTH byte aligned instead of bit aligned#387
romancardenas merged 1 commit intorust-embedded:masterfrom
kurtjd:arch-width-fix

Conversation

@kurtjd
Copy link
Contributor

@kurtjd kurtjd commented Jan 13, 2026

#385 pointed out the build script is passing ARCH_WIDTH in bits rather than bytes, so this PR simply divides width by 8 to correctly pass width in bytes. Does indeed seem to help reduce binary size slightly (the one example I tested it on reduced .rodata by 4 bytes).

Additionally bumps version to 0.17.1.

Resolves #385

@kurtjd kurtjd requested a review from a team as a code owner January 13, 2026 06:29
Copy link
Contributor

@romancardenas romancardenas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Please, address the comments. Also. if you modify riscv-rt/Cargo.toml to point to version 0.17.1, I will publish a patch today

@romancardenas romancardenas added this pull request to the merge queue Jan 13, 2026
Merged via the queue into rust-embedded:master with commit 97443b4 Jan 13, 2026
165 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

riscv-rt: link.x uses ARCH_WIDTH bits as byte units

2 participants