Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Restrictions on (object file/shareable image) symbol name

 
Frequent Advisor

Re: Restrictions on (object file/shareable image) symbol name

"
I dare say that you are correct about the lowest common denominator but a limit of 31 is not enough for languages that support overloading and use name mangling, unless those languages contain special hacks to account for the low limit, and I suspect strongly that the limit is higher on Itanium.
"

For C and C++, the limit is 31. Name mangling algorithm takes it into account, see below.

-Boris

$ cxx x.cxx
$ typ [.cxx_repository]cxx$demangler_db.
CX3$Z32A0123456780123456003J6HFvoid a0123456780123456789012345678901()
CX3$Z32A012345678012345626J35UQvoid a0123456780123456789012345678901(int)
$

x.cxx
-----
void a0123456780123456789012345678901() {}
void a0123456780123456789012345678901(int) {}

$ say f$length("a0123456780123456789012345678901")
32
$ say f$length("CX3$Z32A0123456780123456003J6HF")
31
$
Frequent Advisor

Re: Restrictions on (object file/shareable image) symbol name

Closing - "permanent restriction"