Mehdi Akiki

Posts tagged "compiler"

  • Published on
    Rust 1.99.0 forgot one attribute on FFI functions that return bool on x86_64 Linux, and C callers got 16 where Rust computed false. I rebuilt the bug with three toolchains, gcc and clang, to see what this value does in C and how to tell a compiler bug from my own ABI mistake.
  • Published on

    Reference · Through the layers

    TIL: How to Display the AST in Rust

    Learn how to display the Abstract Syntax Tree (AST) in Rust using the `rustc` compiler and the nightly toolchain.