]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Build the kernel with -mconstant-gp. This means that function calls,
authorMarcel Moolenaar <marcel@FreeBSD.org>
Sun, 13 Oct 2002 07:07:51 +0000 (07:07 +0000)
committerMarcel Moolenaar <marcel@FreeBSD.org>
Sun, 13 Oct 2002 07:07:51 +0000 (07:07 +0000)
commit52f5014e7313f5d2b947cd4a936beab554a87115
tree1f54e98d559bec3907ded00bbd73081ebab8c31f
parent7d2eb23f795b0012761a04cfd80146e11a566f03
Build the kernel with -mconstant-gp. This means that function calls,
with the exception of indirect function calls, are assumed to be
intra load module and thus that GP will be the same. This avoids
saving, setting and restoring GP for each function call and
reduces the kernel with ~320KB. There's obviously a performance
benefit as well.

Note that since we generally don't know if calls will be intra or
inter load module when we're compiling kernel modules, -mconstant-gp
cannot be used for modules.
sys/conf/Makefile.ia64