Messages in this thread | | | Date | Tue, 1 Jul 1997 09:27:08 -0400 | From | "David S. Miller" <> | Subject | Re: 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
| |