Re: __builtin_* functions

Ralf Baechle (ralf@uni-koblenz.de)
Sun, 11 Nov 2001 08:55:26 +1100


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/