This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Reduce size footprint of empty strings.


On 02/25/2010 12:23 PM, Jakub Jelinek wrote:
> struct GTY(()) tree_string {
>   struct tree_common common;
>   int length;
>   char str[1];
> };
>
> So the patch certainly doesn't make things worse, we don't support string
> literals longer than 2GB anyway.
>   
I see, thanks. Well, for string *literals* the limitation doesn't seem
too serious, but I expect that pretty soon we'll want to do away with
such artificial limitations: when 256 G of RAM are common, some
automatically generated code may well include pretty long string literals...

Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]