Re: Stack usage tasks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 31, 2005 at 12:43:38PM -0800, Roland Dreier wrote:
>     > The task I'm suggesting was therefore:
>     > - remove the -fno-unit-at-a-time in arch/i386/Makefile in your private
>     >   kernel sources
>     > - use gcc 3.4
>     > - reduce the stack usages in call paths > 3kB
> 
> This is a good idea.  However, I might suggest using gcc 4.0 (you'll
> have to use a snapshot now, but the release should only be a few weeks
> away).  A patch went into gcc 4.0 that makes gcc more intelligent
> about sharing stack for variables that cannot be alive at the same
> time, and therefore it may be more feasible to make unit-at-a-time
> work for the i386 kernels.

That's one option.

Jörn, can you send a list of call paths with a stack usage > 3kB when 
compiling with gcc 3.4 and unit-at-a-time (or tell me how to generate 
these lists)?

If fixing a handful of places was sufficient, it was IMHO worth it for 
enabling unit-at-a-time with gcc 3.4 .

>  - R.

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

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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux