[gccgo] Change string data type
Ian Lance Taylor
iant@google.com
Wed Jun 2 05:26:00 GMT 2010
This patch changes the string data type to just be a pointer and a
length, rather than a length and bytes allocated in a single memory
block. This permits sharing of string constants and makes string
slicing much more efficient. It also matches the data structure used
by the other Go compiler, which is convenient for SWIG. Committed to
gccgo branch.
Ian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 35325 bytes
Desc: string
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100602/64bddaf2/attachment.bin>
More information about the Gcc-patches
mailing list