Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

A programming language is low level when its programs require attention to the irrelevant.


computers / comp.os.vms / Re: Name shortening in C

SubjectAuthor
* Name shortening in CJoukj
+- Re: Name shortening in Chb
`* Re: Name shortening in CCraig A. Berry
 +- Re: Name shortening in CJoukj
 `- Re: Name shortening in CJoukj

1
Name shortening in C

<sj4fof$v0j$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=17408&group=comp.os.vms#17408

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!VBq+0lvnmMNyaA+Ljm3y2w.user.46.165.242.91.POSTED!not-for-mail
From: jou...@hrem.nano.tudelft.nl (Joukj)
Newsgroups: comp.os.vms
Subject: Name shortening in C
Date: Thu, 30 Sep 2021 15:57:33 +0200
Organization: Aioe.org NNTP Server
Message-ID: <sj4fof$v0j$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="31763"; posting-host="VBq+0lvnmMNyaA+Ljm3y2w.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; U; OpenVMS COMPAQ_Professional_Workstation; en-US; rv:1.8.1.17) Gecko/20081029 SeaMonkey/1.1.12
X-Notice: Filtered by postfilter v. 0.9.2
 by: Joukj - Thu, 30 Sep 2021 13:57 UTC

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

Re: Name shortening in C

<sj4isi$h1j$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=17409&group=comp.os.vms#17409

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!GJ4YEC6Hc0eSnm/XjYcK5A.user.46.165.242.91.POSTED!not-for-mail
From: end...@inter.net (hb)
Newsgroups: comp.os.vms
Subject: Re: Name shortening in C
Date: Thu, 30 Sep 2021 16:50:58 +0200
Organization: Aioe.org NNTP Server
Message-ID: <sj4isi$h1j$1@gioia.aioe.org>
References: <sj4fof$v0j$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="17459"; posting-host="GJ4YEC6Hc0eSnm/XjYcK5A.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: hb - Thu, 30 Sep 2021 14:50 UTC

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 "$".
....

Re: Name shortening in C

<sj4nsk$llb$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=17410&group=comp.os.vms#17410

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: craigbe...@nospam.mac.com (Craig A. Berry)
Newsgroups: comp.os.vms
Subject: Re: Name shortening in C
Date: Thu, 30 Sep 2021 11:16:18 -0500
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <sj4nsk$llb$1@dont-email.me>
References: <sj4fof$v0j$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 30 Sep 2021 16:16:20 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="5c579fedc36dbc0028f4bd501649ea77";
logging-data="22187"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18owIyjlssjBuCJ4ddpqyTan9PrBgbrlVg="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0)
Gecko/20100101 Thunderbird/78.14.0
Cancel-Lock: sha1:Gkw/fXJHLbXJUWkxsDeApUNRaPA=
In-Reply-To: <sj4fof$v0j$1@gioia.aioe.org>
Content-Language: en-US
 by: Craig A. Berry - Thu, 30 Sep 2021 16:16 UTC

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/

Re: Name shortening in C

<sj69ir$m81$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=17444&group=comp.os.vms#17444

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!aioe.org!VBq+0lvnmMNyaA+Ljm3y2w.user.46.165.242.91.POSTED!not-for-mail
From: jou...@hrem.nano.tudelft.nl (Joukj)
Newsgroups: comp.os.vms
Subject: Re: Name shortening in C
Date: Fri, 01 Oct 2021 08:24:26 +0200
Organization: Aioe.org NNTP Server
Message-ID: <sj69ir$m81$1@gioia.aioe.org>
References: <sj4fof$v0j$1@gioia.aioe.org> <sj4nsk$llb$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="22785"; posting-host="VBq+0lvnmMNyaA+Ljm3y2w.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; U; OpenVMS COMPAQ_Professional_Workstation; en-US; rv:1.8.1.17) Gecko/20081029 SeaMonkey/1.1.12
X-Notice: Filtered by postfilter v. 0.9.2
 by: Joukj - Fri, 1 Oct 2021 06:24 UTC

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/
Thanks,

I'll check it out

Jouk

Re: Name shortening in C

<sjeiub$cl6$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=17508&group=comp.os.vms#17508

  copy link   Newsgroups: comp.os.vms
Path: rocksolid2!i2pn.org!usenet.goja.nl.eu.org!aioe.org!VBq+0lvnmMNyaA+Ljm3y2w.user.46.165.242.91.POSTED!not-for-mail
From: jou...@hrem.nano.tudelft.nl (Joukj)
Newsgroups: comp.os.vms
Subject: Re: Name shortening in C
Date: Mon, 04 Oct 2021 11:53:13 +0200
Organization: Aioe.org NNTP Server
Message-ID: <sjeiub$cl6$1@gioia.aioe.org>
References: <sj4fof$v0j$1@gioia.aioe.org> <sj4nsk$llb$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="12966"; posting-host="VBq+0lvnmMNyaA+Ljm3y2w.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; U; OpenVMS COMPAQ_Professional_Workstation; en-US; rv:1.8.1.17) Gecko/20081029 SeaMonkey/1.1.12
X-Notice: Filtered by postfilter v. 0.9.2
 by: Joukj - Mon, 4 Oct 2021 09:53 UTC

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

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor