Re: non-gcc linux?

Jeff Garzik
2000-11-02T22:32:36Z

"D. Hugh Redelmeier" wrote:
> Being GCC-dependent is rather parochial. Being GCC-version-dependent
> is downright embarrassing.
>
> Summary: spurious GCC-isms are a bad thing.

Summary: You have no clue about kernel<->gcc interdependencies and
issues.

> - use ISO C 89 when possible (without undue pain)
>
> - use IOS C 99 when advantageous
>
> - use GCCisms for the remainder of appropriate things BUT embed them
> in macros defined in header so that they can be systematically
> replaced. Using these macros probably makes the code more readable.
> Use of any GCCism should probably be justified in commentary.
>
> This would improve the code *and* make it more portable.

Why does this improve the code? It gets slower and uglier and more
difficult to maintain.

Why does this make the code more portable? gcc is already highly
portable, and so it the kernel. This too gains us nothing.

Removing gcc-isms without a pragmatic reason -- and no, ISO C compliancy
is not a pragmatic reason -- is silly, extra work for little or no
value.

Jeff

--
Jeff Garzik | Dinner is ready when
Building 1024 | the smoke alarm goes off.
MandrakeSoft | -/usr/games/fortune