|
|
Log in / Subscribe / Register

LLVM += new architecture

LLVM += new architecture

Posted Feb 26, 2021 13:48 UTC (Fri) by Gaelan (guest, #145108)
In reply to: LLVM += new architecture by sthibaul
Parent article: Python cryptography, Rust, and Gentoo

For what it's worth, there's bindgen, which automates the process of converting C headers to a Rust interface. It looks like the Rust people aren't using it for libc at the moment, but if you needed it to support a new architecture/libc, you could write a version of the libc crate that used bindgen, or just use bindgen's output as a starting point to add to the hand-written definitions in the libc crate.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds