Identifier-name compression.

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Sat May 21 15:50:02 PDT 2016


On Saturday, 21 May 2016 at 22:40:44 UTC, Stefan Koch wrote:
> Hi,
>
> I just had a nice idea.
> However due to my lack of obj-file-format knowlege I don't know 
> how feasible it is.
> As far as I can see Identifiers are already in a hashed format 
> while inside the symbol-table of the compiler.
> The Idea would be to safe a hash-table from id to 
> clear-text-name or compressed-clear-text-name inside the object 
> And simply mangle the id of the identifier rather then the 
> identifier itself.

I though about this a bit more and I am more and more convinced 
that it can actually work.

Since the symbol id per module will be unique.
So basically it would go like 
_modulename_length%modulename_SymbolID
This way processing time will not be touched and in the best case 
it will even be reduced.



More information about the Digitalmars-d mailing list