Re: [uClinux-dev] Kernel 2.6 size increase

From: Bernardo Innocenti (bernie@develer.com)
Date: Wed Jul 23 2003 - 16:57:24 EST


On Wednesday 23 July 2003 21:32, Christoph Hellwig wrote:

> Yes, we need to get this down again. What compiler and compiler
> flags are you using? Could you retry with the following ripped
> from include/linux/compiler.h:
>
> #if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
> #define inline __inline__ __attribute__((always_inline))
> #define __inline__ __inline__ __attribute__((always_inline))
> #define __inline __inline__ __attribute__((always_inline))
> #endif

Not much changed:

   text data bss dec hex filename
 845924 51204 78896 976024 ee498 linux-2.5.x/vmlinux-inline
 840368 48392 78896 967656 ec3e8 linux-2.5.x/vmlinux-noinline

By the way: this is uClinux 2.5.75-uc0. 2.6.0-test1 should be very close.
I'm building with gcc 3.3.1-pre with some ColdFire/uClinux patches.

> I'd especially be interested in the fs/ numbers after this.

 Neither did it change much here:

   text data bss dec hex filename
 224145 6952 5468 236565 39c15 linux-2.5.x/fs/built-in.o.inline
 223591 6952 5468 236011 399eb linux-2.5.x/fs/built-in.o

> Also -Os on both would be quite cool.

   text data bss dec hex filename
 845924 51204 78896 976024 ee498 linux-2.5.x/vmlinux-inline-O2
 819276 52460 78896 950632 e8168 linux-2.5.x/vmlinux-inline-Os

   text data bss dec hex filename
 840368 48392 78896 967656 ec3e8 linux-2.5.x/vmlinux-noinline-O2
 815052 48316 78896 942264 e60b8 linux-2.5.x/vmlinux-noinline-Os

This is quite a saving! I'll send a patch to Greg (uClinux maintainer)
once I've tested it a bit more.

NOTE: I just noticed the 2.4.x kernel was built with -O1 because I
had symbolic debug enabled. That's not fair: 2.4.20 would probably
come out even smaller than I reported!

-- 
  // Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/  http://www.develer.com/

Please don't send Word attachments - http://www.gnu.org/philosophy/no-word-attachments.html

- 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/



This archive was generated by hypermail 2b29 : Wed Jul 23 2003 - 22:00:50 EST