-
will be useful for producing optimized [libraries](https://github.com/CashScript/cashscript/issues/153)
or just to save bytes by forcing some checks or ops to be carried out in a particular manner
-
This inline assembly does `exit(0)` on x86_64 linux:
```zig
asm volatile ("syscall"
: [ret] "={rax}" (-> usize)
: [number] "{rax}" (60),
[arg1] "{rdi}" (0)
…
-
I've stumbled upon this error when building libck for Termux with clang on arm.
clang error
```
In file included from /home/builder/.termux-build/libck/src/src/ck_ec.c:1:
In file included from…
-
Hi @Xudong-Huang. Having an issue with 0.8.0 and newer on iOS targets. 0.7.5 builds fine, but 0.8.0 fails with inline assembly errors (see the log below).
Toolchains I checked on:
- 1.79.0-aarch64…
-
The following code
```rust
pub unsafe fn lea_sub(x: usize) -> usize {
use std::arch::asm;
let y: usize;
asm!(
"xor rax, rax",
"lea rax, [rax - 8 * rdx]",
…
-
Following the [discussion](https://github.com/ashvardanian/StringZilla/issues/137#issuecomment-2062228429) in #137, it would be great to reach some uniformity in feature detection on x86 and Arm. On t…
-
Now that we have [native support](https://github.com/cilium/cilium/pull/29377) for `bpf_xdp_load_bytes()`, wouldn't it be nice if we also replaced the inline assembly in https://github.com/cilium/cili…
-
Since cranelift is soon to be a backend for rust, it will need to support inline assembly. There is no good way to solve this right now, since rust uses the llvm inline asm syntax right now. I'm makin…
-
jlc 20001009-2.c
jlc 20030222-1.c
This should not have happened!
UNREACHABLE executed at /home/magnus/git/jlm-eval-suite/jlm/libjlm/src/frontend/llvm/LlvmInstructionConversion.cpp:35
[20001009…
-
One other optimization you can do is eliminating some expensive jumps when setting the data register. This does require some inline assembly, but only to prevent the compiler from optimizing it out. T…