Re: Internal Representation of Strings

Hans-Peter Diettrich <DrDiettrich1@aol.com>
Sun, 22 Feb 2009 13:43:30 +0100

          From comp.compilers

Related articles
[16 earlier articles]
Re: Internal Representation of Strings tony@my.net (Tony) (2009-02-18)
Re: Internal Representation of Strings cr88192@hotmail.com (cr88192) (2009-02-19)
Re: Internal Representation of Strings cr88192@hotmail.com (cr88192) (2009-02-21)
Re: Internal Representation of Strings tony@my.net (Tony) (2009-02-21)
Re: Internal Representation of Strings idbaxter@semdesigns.com (Ira Baxter) (2009-02-21)
Re: Internal Representation of Strings cr88192@hotmail.com (cr88192) (2009-02-22)
Re: Internal Representation of Strings DrDiettrich1@aol.com (Hans-Peter Diettrich) (2009-02-22)
Re: Internal Representation of Strings DrDiettrich1@aol.com (Hans-Peter Diettrich) (2009-02-22)
Re: Internal Representation of Strings bartc@freeuk.com (Bartc) (2009-02-22)
Re: Internal Representation of Strings scooter.phd@gmail.com (Scott Michel) (2009-02-22)
Re: Internal Representation of Strings cr88192@hotmail.com (cr88192) (2009-02-23)
Re: Internal Representation of Strings marcov@stack.nl (Marco van de Voort) (2009-02-23)
Re: Internal Representation of Strings haberg_20080406@math.su.se (Hans Aberg) (2009-02-23)
[11 later articles]
| List of all articles for this month |

From: Hans-Peter Diettrich <DrDiettrich1@aol.com>
Newsgroups: comp.compilers
Date: Sun, 22 Feb 2009 13:43:30 +0100
Organization: Compilers Central
References: 09-02-051 09-02-068 09-02-078 09-02-084 09-02-090 09-02-105 09-02-107
Keywords: storage
Posted-Date: 22 Feb 2009 18:35:19 EST

Ira Baxter schrieb:


> As an example, we store small integers in number-carrying leaf
> nodes, with a hash table used to store pretty rare big integers.


Hash tables for literals can reduce the memory requirements a lot. They
do not only allow to share e.g. constant strings, but also can help in
finding typos in numerical values, or to emit suggestions for named
constants.


When e.g. a value 19.2 is found in more than 100 places in a real life
application, it should cause some frowning.


DoDi



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.