Re: Internal Representation of Strings

"Tony" <tony@my.net>
Tue, 24 Feb 2009 08:36:03 -0600

          From comp.compilers

Related articles
[23 earlier articles]
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)
Re: Internal Representation of Strings tony@my.net (Tony) (2009-02-24)
Re: Internal Representation of Strings DrDiettrich1@aol.com (Hans-Peter Diettrich) (2009-02-24)
Re: Internal Representation of Strings tony@my.net (Tony) (2009-02-25)
Re: Internal Representation of Strings armelasselin@hotmail.com (Armel) (2009-02-26)
Re: Internal Representation of Strings marcov@stack.nl (Marco van de Voort) (2009-02-27)
Re: Internal Representation of Strings tony@my.net (Tony) (2009-02-28)
Re: Internal Representation of Strings cr88192@hotmail.com (cr88192) (2009-03-03)
[4 later articles]
| List of all articles for this month |

From: "Tony" <tony@my.net>
Newsgroups: comp.compilers
Date: Tue, 24 Feb 2009 08:36:03 -0600
Organization: at&t http://my.att.net/
References: 09-02-051 09-02-068 09-02-078
Keywords: storage, comment
Posted-Date: 24 Feb 2009 20:55:09 EST

"Chris F Clark" <cfc@shell01.TheWorld.com> wrote:


> [For a well thought out design which keeps both the current and
> allocated string sizes, see Bruce Guenter's bglibs,
> http://untroubled.org/bglibs/docs/group__str.html -John]


After looking at the definition of the str struct, I see this package won't
be helpful for internal representation at the lowest levels though because
the lengths are stored in a different area of memory than the character
data. I'm trying to keep it so that going from disk to memory to the network
requires no transformation.


Tony
[I don't think you're likely to find a format that is equally satisfactory in memory
and on disk. -John]


Post a followup to this message

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