lkml.org 
[lkml]   [1997]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: kernel programming questions
   From: tim@franck.Princeton.EDU (Tim Hollebeek)
Date: Tue, 1 Jul 1997 08:49:47 -0400 (EDT)

Richard B. Johnson writes ...
> Even though that works.... There SHOULD be a problem with it! Don't
> write code like that. For some reason gcc lets you get away with it.
> If you must write code like that it's broken from the start. Automatic
> variables are supposed to be automatic, not dynamic.

It's a more natural way of expressing alloca()....

First of all, the point that only gcc supports it isn't that important
since Linux already uses a _ton_ of gcc-isms. Second, C9X will add
support for the above to the official C language, so it isn't that evil.

Right, anyone who thinks it should ever be possible to compile the
Linux kernel with something with other than GCC is only kidding
themselves.

(For an amazingly good argument as to why this should be, go
investigate how one does inline assembly using the SunPRO
compiler, bleeech!)

Later,
David "Sparc" Miller
davem@caip.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.059 / U:0.452 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site