-
Notifications
You must be signed in to change notification settings - Fork 13.3k
List all available ABI strings in reference.md #34267
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
Comments
Thing with these “ABI strings” is that its dubious how many of them we want to consider stable. |
/cc @rust-lang/lang |
rustc may prints all available abi:
|
For reference, the LLVM supported calling conventions are http://llvm.org/docs/doxygen/html/namespacellvm_1_1CallingConv.html and the rust calling conventions are Lines 81 to 100 in c66d238
|
I think that "Rust" and "C" calling conventions should be declared standard Rust, i.e., any Rust compiler has to at least have the "Rust" calling convention (of course), and the "C" calling convention (in order to compile as much code as possible, and to interop with C/other languages); however, I think the other calling conventions should be rustc specific. These are the safest ABIs we can reasonably say are probably everywhere. |
@ubsan Also "system" |
@jethrogb I don't know if "system" should be required by every compiler. "Rust" and "C" seem far more universal, whereas "system" only does anything on x32 Windows. Might be enough code uses "system" to justify its inclusion, however. |
Removed the easy tag since there's no agreement about what to document. |
Fixed by #34461 |
No description provided.
The text was updated successfully, but these errors were encountered: