Subject: __builtin_* functions

Hi List,

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

regards,
-hiren


2001-11-11 01:45:50

by Ralf Baechle

[permalink] [raw]
Subject: Re: __builtin_* functions

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