Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Apr 1995 09:50:34 -0700
From:      Bruce Evans <bde>
To:        CVS-commiters, cvs-sys
Subject:   cvs commit: src/sys/i386/boot/biosboot boot.c boot.h
Message-ID:  <199504211650.JAA11026@freefall.cdrom.com>

next in thread | raw e-mail | index | archive | help
bde         95/04/21 09:50:33

  Modified:    sys/i386/boot/biosboot  boot.c boot.h
  Log:
  Make some functions static like they always should have been.
  Change the interfaces of these functions to save space.  The code
  that takes the least amount of space is often the opposite to what
  you might expect.  E.g., it helps to waste a few bytes passing
  pointers so that the compiler can't see that certain addresses
  are identical (gcc likes to waste space by reloading fat constants
  even when the constant is already in a register).
  
  Rewrite getbootdev() to save 80 bytes of space and to make it less
  ugly.  32 bytes were saved simply by omitting the continue statements
  in the pseudo-switch.



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