Operating System - OpenVMS
1752797 Members
6175 Online
108789 Solutions
New Discussion

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

 
WW304289
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
$
Derek Garson
Frequent Advisor

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

Closing - "permanent restriction"