cpstrnew branch (was Re: [fpc-devel] Freepascal 2.4.0rc1 released)
Florian Klaempfl
florian at freepascal.org
Wed Nov 11 09:38:35 CET 2009
Graeme Geldenhuys schrieb:
> Florian Klaempfl wrote:
>>> and therefore the RTL and compiler procedures are identical with exception of
>>> the initialization of 4 bytes with a constant?
>> Well, two times two byte ;)
>
> I have not looked at the cpstrnew branch, but what is the 4 bytes used
> for in each string? Couldn't the individual bits in 1 byte value be
> used? That will reduce the extra memory overhead by 75%?
The constant encoding the code page requires 2 bytes, element size would
require 2 bits only, but alignment issues waste the remaining 14 bit
anyways.
More information about the fpc-devel
mailing list