Re: reducing stack usage in v4l?

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Tue Mar 11 2003 - 11:29:30 EST


On Tue, 2003-03-11 at 09:19, Gerd Knorr wrote

> That is wrong, at least the 2k memset/call mentioned by Andrew. There
> are lots of memset() calls, but they all are within the case switches
> for the ioctls and zero out only the structs which are used in that code
> path, so it is actually much smaller (~50 -> ~300 bytes maybe, depending
> on the ioctl).

gcc sometimes does things like allocate all the objects in case
statements at entry time. I assume its a performance win to do so.

Alan

-
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 : Sat Mar 15 2003 - 22:00:26 EST