Getting technicalPhoto by Josh SorensonRegarding the recent ruckus created by the head developer quitting the Rust for Linux effort, I wondered if the core issue of one of the disagreements, related to ABI stability in the Linux Kernel could be solved. So I wondered:What if we could use LLVM to create a widely used ABI standard?This is what AI has to say:1. Data type sizes and alignments: The `%struct.example` type definition shows how struct layouts can be specified.2. Function calling convention: The `@example_function` definition shows how parameters are declared and how the function is defined.3. Attributes for specifying calling conventions: The `#0` attribute group demonstrates how additional function attributes can be specified.4. Global variable alignment: The `@global_var` declaration shows how global variable alignment can be specified.5. Exception handling: The `@function_with_exception_handling` demonstrates how exception handling mechanisms can be defined.
Rust and Linux and C and ABI and what not | by Vicente Aceituno Canal | Assorted Thoughts | Sep, 2024
