Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jul 2013 11:54:36 -0700
From:      Juli Mallett <juli@clockworksquid.com>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        Warner Losh <imp@freebsd.org>, "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
Subject:   Re: Can we undo the octeon hack?
Message-ID:  <6401792509903023722@unknownmsgid>
In-Reply-To: <CAJ-VmonJg2BhBdckFb1O79ZnWrXKZhT%2Bku9SjuswLui6iZC1Ow@mail.gmail.com>
References:  <CAJ-VmonJg2BhBdckFb1O79ZnWrXKZhT%2Bku9SjuswLui6iZC1Ow@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Making it possible to override each value would be ideal but
cumbersome.  If you want to do that, by all means do!

Thanks,
Juli.

On 2013-07-21, at 11:44, Adrian Chadd <adrian@freebsd.org> wrote:

> Hi Juli/Warner,
>
> Is it possible to undo this particular hack, and allow these values to
> be overridden in the kernel config files?
>
> from kern.pre.mk
>
> CFLAGS= ${COPTFLAGS} ${C_DIALECT} ${DEBUG} ${CWARNFLAGS}
> CFLAGS+= ${INCLUDES} -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include
> opt_global.h
> .if ${COMPILER_TYPE} != "clang"
> CFLAGS+= -fno-common -finline-limit=${INLINE_LIMIT}
> .if ${MACHINE_CPUARCH} != "mips"
> CFLAGS+= --param inline-unit-growth=100
> CFLAGS+= --param large-function-growth=1000
> .else
> # XXX Actually a gross hack just for Octeon because of the Simple Executive.
> CFLAGS+= --param inline-unit-growth=10000
> CFLAGS+= --param large-function-growth=100000
> CFLAGS+= --param max-inline-insns-single=10000
> .endif
> .endif
>
> I'd like to be able to experiment with different inline settings in
> order to try and squeeze kernels down to be smaller.
>
> Thanks!
>
>
> -adrian



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