audk/MdeModulePkg
jljusten 4ad9d87d7a * MdeModulePkg/Core/Pei/Dependency/Dependency.h
Decrease MAX_GRAMMAR_SIZE from 256 to 64.

In Dependency.c => PeimDispatchReadiness, a local variable 'EvalStack'
makes an array of EVAL_STACK_ENTRY structures to store a stack for
processing the dependency expression.

Due to alignment considerations, sizeof (EVAL_STACK_ENTRY) is 16 bytes 
on 64 bit architectures.  This means the size of the EvalStack local
variable in PeimDispatchReadiness grows to 4kb.

In the PEI phase, the stack area may be very small, and therefore 4kb is 
much to large.  Reducing MAX_GRAMMAR_SIZE to 64 will lower the size
of EvalStack to 1kb.

While reducing this to 1kb solves an issue seen with GCC on X64, it is
still a large usage of stack for the PEI phase, and future improvements
may still need to be made.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7514 6f19259b-4bc3-4df7-8a09-765794883524
2009-02-12 17:15:08 +00:00
..
Application/HelloWorld Add INF extension Information 2009-01-09 06:26:42 +00:00
Bus add assert logic to avoid Klocwork fake report 2009-02-12 08:41:34 +00:00
Core * MdeModulePkg/Core/Pei/Dependency/Dependency.h 2009-02-12 17:15:08 +00:00
Include Add the missing Guid header file. 2009-02-10 14:33:55 +00:00
Library fixed comments missing. 2009-02-12 06:06:23 +00:00
Logo INF head modified 2008-12-12 01:27:36 +00:00
Universal enhanced security check. 2009-02-12 06:05:08 +00:00
ChangeLog.txt Add change log for non-compatible change. 2007-11-20 07:34:25 +00:00
MdeModulePkg.dec Remove FlashMap Ppi that has been replaced by Flash related PCDs. 2009-02-05 03:15:10 +00:00
MdeModulePkg.dsc Add comments in DSC files to explain the function and design of components section. 2009-02-10 08:58:47 +00:00