I have a big code to compile by using Codewarrior 10.6. The default optimization mem limit is 150 M . Does anyone kown How to increase the default mem limit ?
Thanks for your Reply.
There is a Error message in the command window while compiling:
>Optimizer computes it would need more than 161 M of memory to compute register
>def-use chains. Key Optimizations Failed
>Limit currently set to 150 M
>Increase limit using ' #pragma opt_usedef_mem_limit 161'
If I modify the code (deleting some tables) the warning disappear and the micro controller works. I tried to search for help contents, and then found the description for it, but there is no entry for increase it .
Could you identify the place during a debugging session where the the code does not work fine? This might help to identify specific function that causes the problem.
Could you try to compare generated linker map files (with and without pragma)?
Can you see the size differnence related to a specific function?