Decrease stack usage in lexer.

We have only 92K of stack and using over 4K per frame is wasteful

	* grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
	as macros so that compiler would remove useless structure on stack.
	Better solution would be to fix flex not to put this structure on
	the stack but flex is external program.
This commit is contained in:
Vladimir Serbinenko 2013-11-16 16:37:59 +01:00
parent 4f84ae0ec8
commit 080603f0b0
2 changed files with 14 additions and 25 deletions

View file

@ -1,3 +1,14 @@
2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
Decrease stack usage in lexer.
We have only 92K of stack and using over 4K per frame is wasteful
* grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
as macros so that compiler would remove useless structure on stack.
Better solution would be to fix flex not to put this structure on
the stack but flex is external program.
2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
Decrease stack usage in signature verification.