This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: ridiculous amounts of padding
- To: Zack Weinberg <zack at rabi dot columbia dot edu>
- Subject: Re: ridiculous amounts of padding
- From: Jeffrey A Law <law at hurl dot cygnus dot com>
- Date: Wed, 13 Jan 1999 18:05:15 -0700
- cc: egcs at egcs dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <199901140000.TAA19809@rabi.phys.columbia.edu>you write:
> glibc has very aggressively optimized string functions, that do tricks like
> that. They do not appear to require more than 8 byte alignment on x86.
> I'm not sure about other platforms.
Right. And we shouldn't restrict ourselves to looking at glibc to determine
what or how to optimize.
> For the case that prompted the question (cpplib.c:print_help()) we emit
> 4468 bytes of string constants and 1228 bytes of padding. That's a 27.5%
> space increase.
Hardly typical of most code I suspect since all this code is print a bunch
of strings, it has no other significant purpose.
jeff