Re: CONFIG_TINY

Erik Andersen (andersen@codepoet.org)
Thu, 31 Oct 2002 03:05:12 -0700


--azLHFNyN32YCQGCU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu Oct 31, 2002 at 09:24:40AM +0100, Rasmus Andersen wrote:
> On Thu, Oct 31, 2002 at 01:53:14AM +0100, Adrian Bunk wrote:
>=20
> Hi Adrian,
> >=20
> > could you try to use "-Os" instead of "-O2" as gcc optimization option
> > when CONFIG_TINY is enabled? Something like the following (completely
> > untested) patch:
>=20
> I tried -Os once, and it didn't boot for me. So I dumped it.

I build all my kernels with -Os and it works just fine for me.

--- orig/Makefile Tue Aug 20 06:44:25 2002
+++ linux-2.4.19/Makefile Tue Aug 20 06:44:25 2002
@@ -88,7 +88,7 @@
=20
CPPFLAGS :=3D -D__KERNEL__ -I$(HPATH)
=20
-CFLAGS :=3D $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
+CFLAGS :=3D $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -Os \
-fno-strict-aliasing -fno-common
ifndef CONFIG_FRAME_POINTER
CFLAGS +=3D -fomit-frame-pointer

-Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--

--azLHFNyN32YCQGCU Content-Type: application/pgp-signature Content-Disposition: inline

-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org

iD8DBQE9wQBXX5tkPjDTkFcRAgSYAKDIk4s+lTd+h6KBPetC+sW/zgDNsACfZ+d2 AvChziRmxM9ht4+/TjkRpaY= =ubvW -----END PGP SIGNATURE-----

--azLHFNyN32YCQGCU-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/