This is the mail archive of the gcc@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]

Re: ridiculous amounts of padding



  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


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