Disable SIMD
Open
@CvvT is already working on this.
Since Apr 1, 2025.
enhancement
layer-platform
- Dominant language
- Rust
- Stars
- 2.7k
- Forks
- 144
- Avg merge
- 12h 21m
- Merged PRs (30d)
- 146
Description
We could potentially disable SIMD to avoid the overhead: https://os.phil-opp.com/disable-simd/
Originally posted by @CvvT in https://github.com/MSRSSP/litebox/pull/56#discussion_r2015299498
I haven't checked if backing up SIMD registers is necessary. From the disassembled hello binary, they are usages of SIMD registers before and after syscall instructions, but they don't necessarily need to be preserved. If it is necessary, we could either use xsave/fxsave to do it or disable SIMD to ensure litebox does not use it at all.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.