[Info-vax] linkshrlib.com - link opensource libraries into shareable images
Craig A. Berry
craigberry at mac.com.spamfooler
Fri Aug 3 15:04:09 EDT 2012
In article <jvgqpr$gvu$1 at dont-email.me>,
Stephen Hoffman <seaohveh at hoffmanlabs.invalid> wrote:
> As for the related discussion of C++ symbol mangling, there's a copy of
> Craig A Berry's implementation of the mangling code here
> <http://labs.hoffmanlabs.com/node/616#comment-2293>. (And there's a
> secondary question there of why that wasn't an API somewhere, too.)
No, that's not C++ name mangling. That's C symbol shortening
(/NAMES=SHORTENED) which happens to be the same treatment extern "C"
symbols get under C++. True name mangling is a different and more
complicated beast and I don't think even uses the same algorithm on
Alpha and Itanium. Part of the confusion arises from the fact that
both shortened symbols and mangled symbols get stored in the so-called
name mangler database ([.CXX_REPOSITORY]CXX$DEMANGLER_DB by default).
FWIW, I also made a Perl implementation of symbol shortening that is
used to build the linker options file for the shareable image that
implements the Perl interpreter:
<http://perl5.git.perl.org/perl.git/blob/HEAD:/vms/gen_shrfls.pl#l295>
More information about the Info-vax
mailing list