[Info-vax] Viable versus ideal programming languages

Dan Cross cross at spitfire.i.gajendra.net
Fri Mar 25 09:51:23 EDT 2022


In article <623dc61c$0$702$14726298 at news.sunsite.dk>,
Arne Vajhøj  <arne at vajhoej.dk> wrote:
>On 3/25/2022 9:16 AM, Dan Cross wrote:
>[snip]
>> Of course, all of this works because the name mangling algorithm
>> is well-specified.
>
>If I read that code correctly then it works because the
>std::arch::asm ... mangled = sym mangled knows what to do.
>
>Which is not general language interop.

It "knows what to do" because the name mangling algorithm is
well-specified by a generic ABI, which is the point:

https://itanium-cxx-abi.github.io/cxx-abi/abi.html#mangling

Rust provides a convenient mechanism to make this trivial.

	- Dan C.




More information about the Info-vax mailing list