~/talk

Building Bridges: C++ Interop, Foreign Function Interfaces & ABI

Talkat Meeting C++ 2025 · 2025-11-06..11-08· [rust]
links:none on file
slides:none on file

Explains how C++ linking actually behaves and shows working tools and gotchas: uses bindgen to generate Rust bindings with static_asserts on sizes and offsets, demos cxx crate ownership patterns (unique_ptr, pinned mutability) and c_unwind for cross-language exceptions, walks the System V AMD64 calling convention detail (six regs, large-return via caller-allocated pointer), and reports that autocxx + codegen plus Bazel + cargo integration produces usable bridges when ABI assumptions are checked.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:09Understanding ABI basics
  3. 4:31Platform and C ABI layers
  4. 7:21Interoperating via C ABI
  5. 8:53Calling conventions and layout
  6. 18:40Rust and C++ interoperability
  7. 25:02Advanced tools for bridging
  8. 40:22Q&A and conclusions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.