[lkml]   [2003]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Why do some net drivers require __OPTIMIZE__?
    On 6 Jan 2003, Robert Love wrote:

    > On Mon, 2003-01-06 at 10:04, Richard B. Johnson wrote:
    > > You need to optimize in order enable inline code generation. It is
    > > essential to use in-line code in many places because, if the compiler
    > > actually calls these functions they would have to be protected
    > > from reentry.
    > I do not think this is correct.
    > Concurrency concerns would not change wrt calling the function vs.
    > inlining it.
    > More likely some code, i.e. asm, just assumes inlining is taking place.
    > Robert Love

    When you call a function, that function gets a copy of the parameters
    passed to it. In-line code accesses those parameters directly. That's
    why the spin-lock code, for instance, won't work (with the current macros)
    unless they are in-lined.

    Dick Johnson
    Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).
    Why is the government concerned about the lunatic fringe? Think about it.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:32    [W:0.018 / U:5.832 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site