This article was previously published under Q113116
This article has been archived. It is offered "as is" and will no longer be updated.
The ERRORS.HLP file does not document fatal error C1053, "function toolarge for global optimizations." This error can occur on very large blocksof code.
The compiler has a limited amount of space available for storing temporaryvariables that it uses to track code within a function or code block.
The compiler could not handle the size of the specified function. You cancompile without the /Og switch (this includes the /Ox and /O2 switches) orsplit up your code to reduce the size of the function. Note that a functionwhich calls inline routines can grow very large.
This was corrected in Microsoft Visual C++, version 2.0