Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate using stabby for ABI details #1

Open
silvanshade opened this issue May 6, 2024 · 1 comment
Open

Investigate using stabby for ABI details #1

silvanshade opened this issue May 6, 2024 · 1 comment

Comments

@silvanshade
Copy link
Owner

See https://github.com/ZettaScaleLabs/stabby

@silvanshade
Copy link
Owner Author

silvanshade commented May 8, 2024

Preliminary ideas for how this could be useful:

  • use for translating more types across FFI
    • how do we use stabby on the C++ side?
  • use for verifying optimal layout: see https://docs.rs/stabby/latest/stabby/#structures
    • probably limited utility unless (or until) we start exposing internal struct fields (needs ClangImporter)
  • use for including canaries: see https://docs.rs/stabby/latest/stabby/#stabbyexportcanaries
    • catch potential ABI incompatibilities between clang and gcc
    • can we detect at final build-time (second phase, after abi inference and codegen) a mismatch?
    • under which scenarios would a mismatch even be possible?
      • accidental overrides of CXX, cargo environment, or build.rs compiler selection?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant