Your function is either extremely big or your compiler simply needs more memory to do its job. If it's the first: don't show us the function but break it down to several smaller functions.
Your function is either extremely big or your compiler simply needs more memory to do its job. If it's the first: don't show us the function but break it down to several smaller functions.
My experience of such things is that it is the optimiser not the compiler that needs lots of memory (particularly for large functions).
This means in a pinch (and if performance is not an issue) you can switch off the optimiser (may be just for the problem file) and the code will then compile where you were running out of memory.
Comment