microsoft / microsoft/litebox

Disable SIMD

Open
#64 1 comment 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.