[Info-vax] Name shortening in C
hb
end.of at inter.net
Thu Sep 30 10:50:58 EDT 2021
On 9/30/21 3:57 PM, Joukj wrote:
> Hi all,
>
> when I use the option /name=short when compiling C-code long names are
> mangled in a 32-character string. All is documented in the
> CXX$DEMANGLER_DB. files.
> I would like to create a routine that I can feed with a string and which
> gives the shortened string as output, without needing to (inefficiently)
> read all the CXX$DEMANGLER_DB. files.
>
> The question is : is the algorithm which is used documented/available?
>
>
> Regards
> Jouk
It's documented, try "$ help cc /names":
A shortened name consists of the first 23 characters of the
name followed by a 7-character Cyclic Redundancy Check (CRC)
computed by looking at the full name, and then a "$".
...
More information about the Info-vax
mailing list