[Info-vax] Name shortening in C
Joukj
joukj at hrem.nano.tudelft.nl
Mon Oct 4 05:53:13 EDT 2021
Craig A. Berry wrote:
> On 9/30/21 8:57 AM, 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?
>
> I've got implementations in C and Perl here:
>
> https://sourceforge.net/p/vms-ports/vmsshortsym/ci/default/tree/
The C-version worked fine for me. A version with only the main-program
#ifdef'd out will be inserted in the Freetype package.
(They designed a method to create an .opt file for creating a shareable
image from the C-header files. You need a proper shertening for "long"
names in that case)
Thanks again Craig
Jouk
More information about the Info-vax
mailing list