Re: CONFIG_TINY

Adrian Bunk
2002-10-31T00:47:24Z

On Wed, 30 Oct 2002, Rasmus Andersen wrote:

> Hi,

Hi Rasmus,

>...
> As before, your comments and suggestions will be
> appreciated.

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:

--- Makefile.old 2002-10-31 01:35:36.000000000 +0100
+++ Makefile 2002-10-31 01:49:10.000000000 +0100
@@ -155,8 +155,9 @@
NOSTDINC_FLAGS = -nostdinc -iwithprefix include

CPPFLAGS := -D__KERNEL__ -Iinclude
-CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
+CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs\
-fomit-frame-pointer -fno-strict-aliasing -fno-common
+
AFLAGS := -D__ASSEMBLY__ $(CPPFLAGS)

export VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION KERNELRELEASE ARCH \
@@ -207,6 +208,13 @@

endif

+ifdef CONFIG_TINY
+CFLAGS += -Os
+else
+CFLAGS += -O2
+endif
+
+
include arch/$(ARCH)/Makefile

core-y += kernel/ mm/ fs/ ipc/ security/

> Regards,
> Rasmus

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed