[Info-vax] Viable versus ideal programming languages

Arne Vajhøj arne at vajhoej.dk
Fri Mar 25 10:33:17 EDT 2022


On 3/25/2022 9:51 AM, Dan Cross wrote:
> 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.

Most mangling schemes are documented.

But they are not easily human readable, not compatible with
each other and tend to not be stable over time.

Which is why disabling it is a good thing for language
interop.

Arne




More information about the Info-vax mailing list