#pragma dynamic default value
#5

Quote:
Originally Posted by ******
Посмотреть сообщение
Because when you have recursion there is no way for the compiler to know what the highest stack value will be. Recursion is when a function calls itself, so if a function can call itself forever your stack will grow forever.
But after increasing it enough with #pragma dynamic, the warning no longer shows - why can't the compiler just do this itself? I know it doesn't know how much memory is needed, but clearly at some point it thinks there's enough, because the warning goes away.
Reply


Messages In This Thread
#pragma dynamic default value - by MP2 - 24.07.2013, 03:25
Re: #pragma dynamic default value - by Kyle - 24.07.2013, 13:33
Re: #pragma dynamic default value - by Red_Dragon. - 24.07.2013, 15:10
Re: #pragma dynamic default value - by MP2 - 27.07.2013, 15:47
Re: #pragma dynamic default value - by MP2 - 27.07.2013, 16:17
Re: #pragma dynamic default value - by MP2 - 27.07.2013, 16:43

Forum Jump:


Users browsing this thread: 2 Guest(s)