Elektrine lite

← Feed

@folkertdev@hachyderm.io

2026-08-27 17:06 UTC

I'm working on a rust complex number type that is ABI-compatible with its C counterpart. Here is an initial status update: https://github.com/rust-lang/goals/issues/761#issuecomment-5387788008 If that's something you have a use for, please reach out. Now you might wonder what could be so hard about this, it's just a struct with two fields. True, but many ABIs have come up with some creative ways of passing these things around. And clang and gcc sometimes disagree(d) on how to do this. The clang powerpc implementation still miscompiles... anyway, I'm getting good usage out of my cross-compiling abi-cafe https://github.com/folkertdev/abi-cafe#cross-compilation #rustlang #llvm #clang #gcc

Replies (0)

No replies.