Re: Different string format options, benefits?

pk@cs.tut.fi (Kellom{ki Pertti)
Fri, 18 Oct 1991 10:04:53 GMT

          From comp.compilers

Related articles
Different string format options, benefits? coxs2@rpi.edu (Sean C. Cox) (1991-10-16)
Re: Different string format options, benefits? pardo@cs.washington.edu (1991-10-17)
Re: Different string format options, benefits? pk@cs.tut.fi (1991-10-18)
Re: Different string format options, benefits? agulbra@Siri.Unit.NO (1991-10-18)
Re: Different string format options, benefits? db@dcs.ed.ac.uk (Dave Berry) (1991-10-20)
Re: Different string format options, benefits? tm@well.sf.ca.us (1991-10-22)
Re: Different string format options, benefits? buzzard@eng.umd.edu (1991-10-25)
Re: Different string format options, benefits? henry@zoo.toronto.edu (1991-10-25)
Re: Different string format options, benefits? sdm7g@aemsun.med.virginia.edu (1991-11-01)
[1 later articles]
| List of all articles for this month |
Newsgroups: comp.compilers
From: pk@cs.tut.fi (Kellom{ki Pertti)
Keywords: code, optimize
Organization: Tampere Univ. of Technology, Finland.
References: 91-10-061
Date: Fri, 18 Oct 1991 10:04:53 GMT

In article 91-10-061 coxs2@rpi.edu (Sean C. Cox) writes:
>I am curious about the benefits/costs related to the two general character
>string formats (two I'm familiar with at least). The "C" style
>null-terminated, and the (not so standard) Pascal length-string format (where
>the length of the string is embedded in the string, usually at the beginning.


The article by C. Bron and E. J. Dijkstra: "A Better Way to Combine
Efficient String Length Encoding and Zero-termination", Sigplan
Notices, June 1989, describes a method which combines these two
methods. The length of the string is stored at the end of the string
container rather than at the beginning.
--
Pertti Kellom\"aki (TeX format)
    Tampere Univ. of TeXnology
            Software Systems Lab
--


Post a followup to this message

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