Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Sep 1996 13:18:06 -0700 (PDT)
From:      Bruce Evans <bde>
To:        CVS-committers, cvs-all, cvs-sys
Subject:   cvs commit:  src/sys/i386/boot/biosboot boot.c
Message-ID:  <199609072018.NAA06354@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
bde         96/09/07 13:18:06

  Modified:    sys/i386/boot/biosboot  boot.c
  Log:
  Saved 48 bytes (56 before padding) by moving a variable declaration.
  
  gcc always generates large code for accesses to globals.  For locals
  it only generates large code if there are more than 128 bytes of
  locals.  It sorts scalar locals after array locals to pessimize for
  space in the usual case when there are more (static) references to
  scalars than to arrays.
  
  Saved another 16 bytes (13 before padding) by adding a `continue'.
  
  Fall-through tests normally save space, but here one of them made
  gcc do space-unoptimal register allocation (it allocates ch in %bl
  because preserving this register across function calls is "free",
  but comparisions with %bl take one byte fewer than comparsions with
  %bl).
  
  Revision  Changes    Path
  1.58      +3 -2      src/sys/i386/boot/biosboot/boot.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609072018.NAA06354>