Re: __builtin_* functions

From: Ralf Baechle (ralf@uni-koblenz.de)
Date: Sat Nov 10 2001 - 16:55:26 EST


On Thu, Nov 08, 2001 at 11:19:40AM -0700, MEHTA,HIREN (A-SanJose,ex1) wrote:

> Can these __builtin_* functions provided by gcc be used inside kernel ?
> In particular __builtin_alloca ?

In theory they're usable, in practice you should consider that alloca will
allocate memory on the stack which is of very limited size under Linux so
alloca doesn't usually seem to be a good idea.

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



This archive was generated by hypermail 2b29 : Thu Nov 15 2001 - 21:00:25 EST