bytecodealliance / bytecodealliance/wasmtime
[simplejit] Alignment constraints should be inferred from TargetMachine
Open
cranelift
- Dominant language
- Rust
- Stars
- 18.6k
- Forks
- 1.8k
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 126
Description
Follow-up of https://github.com/CraneStation/cranelift/pull/721:
```
const EXECUTABLE_DATA_ALIGNMENT: u8 = 0x10;
const WRITABLE_DATA_ALIGNMENT: u8 = 0x8;
```
> These two numbers appear somewhat magical. Why 0x10 and 0x8? If these are meant to be target-specific, we should have TargetMachine provide them.
(Note: they might even be compiler- or OS- dependent.)
Contributor guide
Assessment
This issue has not been assessed yet.