Re: [uClinux-dev] Kernel 2.6 size increase - get_current()?

bill davidsen
2003-07-25T18:17:56Z

In article <20030724120441.GC16168@beast>,
David McCullough <davidm@snapgear.com> wrote:

| So should the trend be away from inlining, especially larger functions ?
|
| I know on m68k some of the really simple inlines are actually smaller as
| an inline than as a function call. But they have to be very simple, or
| only used once.

Actually, I would think that the compiler would make the decision in a
perfect world. (no smiley) Clearly some programmers think the compiler
isn't aggressive about this, and that may be the root problem. Certainly
if the compiler makes the choice then -Os should avoid the inline.
--
bill davidsen <davidsen@tmr.com>
CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.