Is it possible to use different optimization levels in the same program. This is because 2 functions in the program give error on assembling the .src file at level 6 and work correctly at level 3 whereas all other functions work correctly at level 6.
Would it be better to fix the underlying problem, rather than just mask the symptoms?
Dear Andrew, I myself feel that it is always better to fixup the underlying problem rather than just mask it as everyone wants to generate the shortest and the fasted code using the highest level of optimization. Recently I faced a problem. My source file main.c showed no errors on compiling but on assembling it showed loads of errors. I noticed that the program assembled errorfree on using optimization level 3 but gave errors on level 4. I further noticed that I had either declared 8-10 local variables in the routine which gave errors or had passed a string of 161 bytes to the function. What can be the possible cause and remedy? Mohit
Precisely what errors did you get? If it goes wrong with "lots" of local variables, or "big" strings - that sound like something overflowing?