News for hackers. Stuff that matters.
Re:The Good, the Bad, and the Ugly: The Unix Legacy (by Rob ... by beza1e1 on Thursday May 07, 2009 @03:12AM (#597584)
His point is to use C instead of the preprocessor.

    #ifdef MIPS
        mips_stuff();
    #endif
should be

    if (MIPS) {
        mips_stuff();
    }
Even a mediocre compiler should be able to eliminate the then-body in the non-MIPS case.

Another possibility is to generate the same symbols in every architecture specific component and link the one you want to use.

There are no comments on this comment yet.