Re: 2.4.0-test8-pre1 is quite bad / how about integrating Rik's VM

From: Chris Wedgwood (cw@f00f.org)
Date: Tue Sep 05 2000 - 19:37:09 EST


    Oh, yes there is.
    
            if (CONFIG_FOO) {
                    ....
            } else {
                    ....
            }
    
    gcc can optimize that away and parser will see the whole thing.

I'm not sure I like this construct either.

Yes, it does mean gcc makes all the decisions and allows the
c-compiler to to more checking (as opposed to the preprocessor which
obviosly is really dumb) but it also assumes the compiler will always
elimiate dead code and I'm not convinced it's any more readable that
have "#if foo" scattered through the code.

  --cw
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Sep 07 2000 - 21:00:24 EST